mysql 执行service mysqld restart重新初始化了数据库,真实数据库丢失,不知道是怎么回事?请高手帮组谢谢
执行mysql出错
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
出错后调用 service mysqld status 状态为“运行中”
调用service mysqld restart 居然重新初始化数据库(我自己的数据库被删除),不知道怎么回事,请高手帮助,谢谢。
MySQL データベースを初期化中: Installing MySQL system tables...
OK
Filling help tables...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h update01 password 'new-password'