linux下安装mysql my.cnf配置文件发生错误
来源:互联网 发布:国民党空军知乎 编辑:程序博客网 时间:2024/06/06 04:35
问题:
[root@localhost etc]# service mysqld status
my_print_defaults: [ERROR] Found option without preceding group in config file /etc/my.cnf at line 1!
my_print_defaults: [ERROR] Fatal error in defaults handling. Program aborted!
ERROR! MySQL is not running
解决方法:
将my.cnf文件以ANSI格式保存即可
问题:
[root@localhost bin]# ./mysql -uroot -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
解决方法:
将my.cnf配置文件中的 socket值改为 '/tmp/mysql.sock'
问题:
[root@localhost bin]# ./mysql -uroot -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
解决方法:
修改my.cnf
在mysqld下面添加:
[mysqld]
skip-grant-tables
skip-grant-tables
阅读全文
0 0
- linux下安装mysql my.cnf配置文件发生错误
- linux下mysql配置文件my.cnf详解
- linux下mysql配置文件my.cnf详解
- linux下mysql配置文件my.cnf详解
- linux下mysql配置文件my.cnf详解
- linux下mysql配置文件my.cnf详解
- linux下mysql配置文件my.cnf详解
- linux下mysql配置文件my.cnf详解
- linux下mysql配置文件my.cnf
- linux下mysql配置文件my.cnf详解
- linux下mysql配置文件my.cnf详解
- linux下mysql配置文件my.cnf详解
- linux下mysql配置文件my.cnf详解
- linux下mysql配置文件my.cnf详解
- linux下mysql配置文件my.cnf详解
- linux下mysql配置文件my.cnf详解
- linux下mysql配置文件my.cnf详解
- linux下mysql配置文件my.cnf详解
- OKhttp get同步请求方式 获取数据
- 指针数组 数组指针 函数指针 函数指针数组 指向函数指针数组的指针
- jasper报表格式化bigdecimal(decimal128)数据千分位
- RESTful架构
- android动态权限
- linux下安装mysql my.cnf配置文件发生错误
- jenkins配置邮件及增强版邮件通知
- 阿里云基础认证(ACA
- 蓝桥杯 算法训练 寂寞的数
- (三)BufferedInputStream源码学习
- busybox初始化配置
- 在filebeat 6.0.0中如何将log输出到不同到kafka topics
- 选择排序&堆排序
- 2017hdu新生赛 1007 找方块