Chinaunix首页 | 论坛 | 博客
  • 博客访问: 337803
  • 博文数量: 97
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 811
  • 用 户 组: 普通用户
  • 注册时间: 2015-02-25 19:22
文章分类

全部博文(97)

文章存档

2021年(1)

2020年(18)

2019年(14)

2018年(29)

2017年(16)

2016年(19)

我的朋友

分类: Mysql/postgreSQL

2016-04-30 22:20:53

ERROR 1290 (HY000): The MySQL server is running with the --read-only option so it cannot execute this statement 
mysql> set global read_only=off

===================================================================================
启动mysqld时报错: ERROR! The server quit without updating PID file (/usr/local/mysql/data/Master.pid).
解决方案:没有在/etc/my.cnf里指定datadir 
cmake -DCMAKE_INSTALL_PREFIX=/home/mysql -DMYSQL_DATADIR=/home/mysql/data -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DMYSQL_TCP_PORT=3306 -DMYSQL_USER=mysql -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_MEMORY_STORAGE_ENGINE=1 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/usr/local/boost


===================================================================================
libmysqlclient_r.so.16
libmysqlclient.so.20
当程序报找不到这库时,请重新安装mysql-libs,
把mysql安装目录下lib/libmysqlclient.so.20 复制到/usr/lib64/libmysqlclient.so.20 ,这系统是64位的。

====================================================================================
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

mysql> UPDATE mysql.user SET Password=PASSWORD('your_new_password') WHERE User='root'; 
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.  
 mysql> SET PASSWORD = PASSWORD('your_new_password'); 
 


======================================================================================
dict_mysql.c: In function 'dict_mysql_lookup':
dict_mysql.c:318: error: 'MYSQL_RES' undeclared (first use in this function)
dict_mysql.c:318: error: (Each undeclared identifier is reported only once
dict_mysql.c:318: error: for each function it appears in.)
dict_mysql.c:318: error: 'query_res' undeclared (first use in this function)
dict_mysql.c:319: error: 'MYSQL_ROW' undeclared (first use in this function)
dict_mysql.c:319: error: expected ';' before 'row'
dict_mysql.c:396: error: 'row' undeclared (first use in this function)
dict_mysql.c: In function 'dict_mysql_check_stat':
dict_mysql.c:419: error: 'HOST' has no member named 'stat'
dict_mysql.c:419: error: 'HOST' has no member named 'type'
dict_mysql.c:421: error: 'HOST' has no member named 'stat'
dict_mysql.c:421: error: 'HOST' has no member named 'ts'
dict_mysql.c:421: error: 'HOST' has no member named 'ts'

安装mysql-devel-* 


======================================================================================
安装mysql时没有显示临时密码
执行mysqld --initialize --user=mysql --basedir=/data/mysql --datadir=/data/mysql/data
后没有显示临时密码
解决方案:可以在/data/mysql/data/error.log里找到临时密码
图片
阅读(1030) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~