quando sto invocando il mysql_secure_installation file di errore sto ottenendo comemysql_secure_installation "Impossibile connettersi al server MySQL locale tramite presa"
[[email protected] 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):
ma il file calzino data nel file my.cnf è/home/mysqk123 /tmp/mysql.sock e sto usando rehhat linux 5.3 e mysql 5.1.47
So che le attività eseguite dallo script mysql_secure_installation possono essere eseguite manualmente, ma qui devo eseguire lo script [non è permesso eseguire l'operazione manualmente]
qualsiasi suggerimento s per risolvere il problema sono molto utili per me
grazie proprio lavorando – vidyadhar
sei genio :) –
partire da MySQL 5.7.2, 'mysql_secure_installation.sh' sarà sostituito da un binario che accetta le opzioni sulla riga di comando, in particolare ['--socket = path'] (http://dev.mysql.com/doc/refman/5.7/en/mysql-secure-installation.html).Non l'ho ancora provato, ma aggiornerò la risposta quando ne saprò di più. – RandomSeed