mysql安装过程-错误解决

mysql开启远程访问

解决方法:https://blog.csdn.net/konglongaa/article/details/80996829

安装过程可能出现错误,问题列表:
1、提示:Can’t locate ExtUtils/MakeMaker.pm in @INC 错误的解决方式
https://blog.csdn.net/w87848608/article/details/13997271

yum install perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker就可以了

2、gcc 安装
https://www.cnblogs.com/xiyushimei/p/8550930.html

1、提示:Can’t locate Data/Dumper.pm
解决方法:https://blog.csdn.net/zhengwei125/article/details/79093068

2、提示:Installing MySQL system tables…/usr/local/mysql/bin/mysqld: error while loading shared libraries:
解决方法:https://blog.csdn.net/songmao3145/article/details/77676402

3、提示:Starting MySQL.The server quit without updating PID file (/[FAILED]ql/mysql.pid).
解决方法:安装的过程会有警告:WARNING: Default config file /etc/my.cnf exists on the system
This file will be read by default by
只要把 /etc/my.cnf里面的pid-file注释掉,或者创建对应的目录

参照文章:https://blog.51cto.com/fengyunshan911/2070818

4、提示:Starting MySQL.The server quit without updating PID file
解决方法:目录所属权限和执行权限导致
chown -R mysql:myGroup /usr/local/mysql
chmod -R 755 /usr/local/mysql

5、提示:ERROR 1200 (HY000): The server is not configured as slave; fix in config file or with CHANGE MASTER TO
解决方法:进入系统手工执行:

mysql -uroot -h 127.0.0.1 -p
或者
mysql -u root -p

change master to master_host=‘192.168.0.104’,
master_port=3306,
master_user=‘mysql’,
master_password=‘123456’,
master_log_file=‘mysql-bin.001780’,
master_log_pos=16612;

启动Slave开启同步

start slave;

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值