MySQL not working by default
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro OpenEmbedded |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi,
When booting LAMP image, MySQL doesn't work by default:
% mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
% mysqladmin ping
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
No mysql process is running; if one restarts mysql, it fails to start in the same way as it fails to start on boot, from /var/log/
121019 00:13:04 mysqld_safe Starting mysqld daemon with databases from /var/mysql
/usr/lib/
121019 0:13:04 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
121019 0:13:04 [Warning] /usr/lib/
121019 0:13:04 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
121019 00:13:04 mysqld_safe mysqld from pid file /var/lib/
I suspect either a config is missing, or some final installation step wasn't run.
Running mysql_upgrade fails with the /tmp sock error too.
Cheers,
Changed in linaro-oe: | |
status: | New → Incomplete |
status: | Incomplete → Confirmed |
Changed in linaro-oe: | |
status: | Confirmed → In Progress |
Fix sent to OpenEmbedded ML