如何处理安装MySQL错误归档问题

发布网友 发布时间:2022-04-20 21:47

我来回答

2个回答

热心网友 时间:2022-04-08 05:42

运行下面的DOS命令,粘贴结果上来大家帮你看: NETSTAT -ANO 可以把结果输出到记事本文件,命令是: NETSTAT -ANO > C:\NET.TXT 粘贴C:\NET.TXT的记事本文件内容上来。 补充: 错误信息是你输入密码不正确,与什么防火墙都无关。

1、
[root@localhost mysql]# scripts/mysql_install_db
Neither host 'localhost.localdomain' nor 'localhost' could be looked up with
/resolveip
Please configure the 'hostname' command to return a correct
hostname.
If you want to solve this at a later stage, restart this script
with the --force option
这个主要是修改/etc/hosts文件
echo "127.0.0.1 localhost.localdomain localhost" >> /etc/hosts
然后再初始化数据,如果还是同样的错误,那就直接加--force开关。
我今天碰到的就是这个情况。
[root@localhost mysql]# scripts/mysql_install_db --force
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/local/mysql//bin/mysqladmin -u root password 'new-password'
/usr/local/mysql//bin/mysqladmin -u root -h localhost.localdomain password 'new-password'
See the manual for more instructions.
You can start the MySQL daemon with:
cd . ; /usr/local/mysql//bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl
Please report any problems with the ./bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
这样就成功初始化数据了。

热心网友 时间:2022-04-08 07:00

更快速的配置对比 pt-config-diff在我们日常工作中,大家一定遇到过以下场景:

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com