安装mysql常见错误及解决
2012-07-10 13:30
309 查看
装mysql时出现以下错误:
1.
checking for tgetent in -ltermcap... no
checking for termcap functions library... configure: error: No curses/termcap library found
解决方案:
yum -y install ncurses-devel
2.
../depcomp: line 571: exec: g++: not found
解决方案:
使用如下两个命令就可把gcc,gcc-c++统统安装上:
yum -y install gcc
yum -y install gcc-c++
3.
命令:mysqladmin password '密码'
bash:mysqladmin not found
解决方案:mysqladmin 前加上路径名【去configure --prefix=xxx指定的xxx下的mysql/bin里运行它】
4.
报错:/usr/local/mysql/bin/mysqld: unknown option ‘–skip-bdb’
解决方案:如果系统中有一个存在于/etc/mysql中的my.cnf,更改这个/etc/mysql/my.cnf的名字即可
5.
报错:error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
解决方案:ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
6.用grant all privileges 给mysql授权时,出现ERROR 1290(HY000)错误
在用grant all privileges on *.* to root@192.168.0.3 identified by "123" 给mysql数据库,作远程访问授权时,出现错误:
ERROR 1290 (HY000):The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement.
其解决办法如下:
flush privileges。
再用grant all 命令。
1.
checking for tgetent in -ltermcap... no
checking for termcap functions library... configure: error: No curses/termcap library found
解决方案:
yum -y install ncurses-devel
2.
../depcomp: line 571: exec: g++: not found
解决方案:
使用如下两个命令就可把gcc,gcc-c++统统安装上:
yum -y install gcc
yum -y install gcc-c++
3.
命令:mysqladmin password '密码'
bash:mysqladmin not found
解决方案:mysqladmin 前加上路径名【去configure --prefix=xxx指定的xxx下的mysql/bin里运行它】
4.
报错:/usr/local/mysql/bin/mysqld: unknown option ‘–skip-bdb’
解决方案:如果系统中有一个存在于/etc/mysql中的my.cnf,更改这个/etc/mysql/my.cnf的名字即可
5.
报错:error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
解决方案:ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
6.用grant all privileges 给mysql授权时,出现ERROR 1290(HY000)错误
在用grant all privileges on *.* to root@192.168.0.3 identified by "123" 给mysql数据库,作远程访问授权时,出现错误:
ERROR 1290 (HY000):The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement.
其解决办法如下:
flush privileges。
再用grant all 命令。
相关文章推荐
- ubuntu 安装nginx,php,mysql。常见错误解决
- 编译安装php及编译安装mysql常见错误总结及解决办法
- linux 编译安装php及编译安装mysql常见错误总结及解决办法
- 编译安装php及编译安装mysql常见错误总结及解决办法 网上找的
- Linux上安装Mysql时出现错误 , 包冲突 - 解决
- (通用)深度学习环境搭建:tensorflow安装教程及常见错误解决
- linux 软件包安装常见错误及解决方法
- mysql授权localhost&%区别及一直授权错误解决办法(安装openstack有感)
- OpenCV-3编译安装方法及常见错误解决(Ubuntu平台)
- mysql安装常见问题(系统找不到指定的文件、发生系统错误 1067 进程意外终止)
- MySQL 5.1 安装过程中报apply security setting错误的解决办法
- CentOS下PHP7的编译安装及MySQL的支持和一些常见问题的解决办法
- win10 安装mysql错误2503 2502 解决办法
- [WP]常见wordpress安装,运行,使用出现500错误分析和解决方法
- MySQL 5.1安装到最后一步start service错误解决方法
- Qt5.7配合mysql免安装版使用,Drive not loaded的错误解决
- linux编译安装时常见错误解决办法
- mysql源码包安装错误解决办法
- MySQL5.6免安装配置与“系统找不到指定的文件”错误解决