Page 1 of 1

XAMPP: Couldn't start MySQL! [Solved]

PostPosted: 07. May 2012 10:05
by T-362
After adding new vhost and some time (i come today and its just dead, maybe not only "just dead" - other coder creates some new bases two days ago, but SQL server dies only after xampp restarting) -
Starting XAMPP for Linux 1.7.7...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
Warning: World-writable config file '/opt/lampp/etc/my.cnf' is ignored
XAMPP: Couldn't start MySQL!
XAMPP: Starting ProFTPD...
XAMPP for Linux started.

I used command from another topic -
[root@gn141 ~]# ls -l /opt/lampp/etc/my.cnf
-rwxrwxrwx 1 root root 5054 Dec 17 2010 /opt/lampp/etc/my.cnf
[root@gn141 ~]# chmod 644 /opt/lampp/etc/my.cnf
[root@gn141 ~]# ls -l /opt/lampp/etc/my.cnf
-rw-r--r-- 1 root root 5054 Dec 17 2010 /opt/lampp/etc/my.cnf

(my.cnf wasnt modified since install)
and now it just XAMPP: Couldn't start MySQL!


Error log - gn141.zone.eu.err

120507 10:48:14 mysqld_safe Starting mysqld daemon with databases from /opt/lampp/var/mysql
120507 10:48:14 [Note] Plugin 'FEDERATED' is disabled.
/opt/lampp/sbin/mysqld: Table 'mysql.plugin' doesn't exist
120507 10:48:14 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
120507 10:48:14 InnoDB: The InnoDB memory heap is disabled
120507 10:48:14 InnoDB: Mutexes and rw_locks use InnoDB's own implementation
120507 10:48:14 InnoDB: Compressed tables use zlib 1.2.3
120507 10:48:14 InnoDB: Initializing buffer pool, size = 16.0M
120507 10:48:14 InnoDB: Completed initialization of buffer pool
120507 10:48:14 InnoDB: highest supported file format is Barracuda.
120507 10:48:14 InnoDB: Waiting for the background threads to start
120507 10:48:15 InnoDB: 1.1.8 started; log sequence number 627359224
120507 10:48:15 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
120507 10:48:15 mysqld_safe mysqld from pid file /opt/lampp/var/mysql/gn141.zone.eu.pid ended

Also a httpd.pid file near the log with 11862 inside

What it can be? (And/or how i can reinstall xampp and save DBs and other stuff? And any good autobackup tool for xampp please.)

Re: XAMPP: Couldn't start MySQL! (another one)

PostPosted: 07. May 2012 19:43
by JonB
uhh permissions???

Warning: World-writable config file '/opt/lampp/etc/my.cnf' is ignored


what are the permissions currently on /opt/lampp/etc/my.cnf?

probably should be 644

Good Luck
8)

Re: XAMPP: Couldn't start MySQL! (another one)

PostPosted: 08. May 2012 09:24
by T-362
Ok sorry we'v found a problem, another coder replaced MYSQL table with another one, its good that we have a backup :oops: :? .

-rw-r--r-- 1 root root 5237 May 7 11:16 /opt/lampp/etc/my.cnf

Re: XAMPP: Couldn't start MySQL! (another one)

PostPosted: 08. May 2012 15:29
by JonB
Backups are a developer's best friend.

Is your box back to working correctly or are you still getting errors?

:?:

Re: XAMPP: Couldn't start MySQL! (another one)

PostPosted: 09. May 2012 11:47
by T-362
Yeah all OK (except of some looses because of old table but its also ok)

120508 11:11:52 mysqld_safe Starting mysqld daemon with databases from /opt/lampp/var/mysql
120508 11:11:52 [Note] Plugin 'FEDERATED' is disabled.
120508 11:11:52 InnoDB: The InnoDB memory heap is disabled
120508 11:11:52 InnoDB: Mutexes and rw_locks use InnoDB's own implementation
120508 11:11:52 InnoDB: Compressed tables use zlib 1.2.3
120508 11:11:52 InnoDB: Initializing buffer pool, size = 16.0M
120508 11:11:52 InnoDB: Completed initialization of buffer pool
120508 11:11:52 InnoDB: highest supported file format is Barracuda.
InnoDB: Log scan progressed past the checkpoint lsn 553222787
120508 11:11:52 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Doing recovery: scanned up to log sequence number 553223827
120508 11:11:52 InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
120508 11:11:52 InnoDB: Waiting for the background threads to start
120508 11:11:53 InnoDB: 1.1.8 started; log sequence number 553223827
120508 11:11:53 [Note] Event Scheduler: Loaded 0 events
120508 11:11:53 [Note] /opt/lampp/sbin/mysqld: ready for connections.
Version: '5.5.16' socket: '/opt/lampp/var/mysql/mysql.sock' port: 3306 Source distribution

Re: XAMPP: Couldn't start MySQL! (another one)

PostPosted: 09. May 2012 15:48
by JonB
OK, I'm calling this solved.

I'm sure you are aware you should fix your database(s) with the correct tools. LOL, as a System Architect that designs ground-up databases then integrates them with frameworks, I know that is easier said than done.

Good Luck
8)