ファイルを呼び出すと、次のmysql_secure_installation
ようなエラーが発生します
[mysqk123@InstallZeMo bin]$ ./mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MySQL to secure it, we'll need the current
password for the root user. If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Enter current password for root (enter for none):
しかし、my.cnf ファイルに指定された sock ファイルは /home/mysqk123/tmp/mysql.sock であり、redhat linux 5.3 と mysql 5.1.47 を使用しています。
mysql_secure_installation スクリプトによって実行されるタスクは手動で実行できることはわかっていますが、ここではスクリプトを実行する必要があります [タスクを手動で実行することは許可されていません]