日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

linux中源码编译安装mysql常见错误

發布時間:2025/3/21 数据库 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux中源码编译安装mysql常见错误 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

一)

#./configure --prefix=/usr/local/mysql-5.1.54

(mysql指定路徑安裝報錯:)

如下:

checking for termcap functions library... configure: error: No curses/termcap library found

安裝:

ncurses-devel.***.rpm 包解決

#cd /media/CentOS_5.5_Final/CentOS/

#ls ncurses-devel*

找到這個包并用rpm安裝。

# rpm -ivh ncurses-devel-5.5-24.20060715.i386.rpm

(或者去下載一個ncurses-5.6.tar.gz,

wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz 解壓并安裝)

(二)

make時出錯

../depcomp: line 571: exec: g++: not found

make[1]: *** [my_new.o] 錯誤 127

make[1]: Leaving directory `/usr/local/src/mysql/mysql-5.1.32/mysys`

make: *** [all-recursive] 錯誤 1

解決:

#yum install gcc-c++ 可解決問題。

重新指定安裝路徑:

#./configure --prefix=/usr/local/mysql-5.0.90

make

make install


?

(三)

初始化數據庫時出錯:

# scripts/mysql_install_db --user=mysql

#bin/mysql_install_db --basedir=/usr/local/mysql-5.1.54 --datadir=/usr/local/mysql-5.1.54/data --user=mysql

[Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-

external-locking' instead.


?

(解決方法:將my.cnf 中的'--skip-locking' 換成'--skip-external-locking' 就可以了。)


?

(四)修改/etc/my.cnf 的配置文件:

[client]

#password = your_password

port = 3306

socket = /tmp/mysql.sock

# Here follows entries for some specific programs

# The MySQL server

[mysqld]

port = 3306

socket = /tmp/mysql.sock

basedir=/usr/local/mysql-5.1.54

datadir=/usr/local/mysql-5.1.54/data

skip-external-locking

key_buffer_size = 16M

max_allowed_packet = 1M

table_open_cache = 64

sort_buffer_size = 512K

net_buffer_length = 8K

read_buffer_size = 256K

read_rnd_buffer_size = 512K

myisam_sort_buffer_size = 8M

[mysql]

no-auto-rehash

# Remove the next comment character if you are not familiar with SQL

#safe-updates

五:提示

出錯時,可及時查看錯誤日志:

vi /usr/local/mysql-5.1.54/data/localhost.localdomain.err

顯示如下:

110107 22:06:31 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use

'--skip-external-locking' instead.

/usr/local/mysql-5.1.54/libexec/mysqld: Table 'mysql.plugin' doesn't exist

110107 22:06:31 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.

110107 22:06:31 [ERROR] Can't start server : Bind on unix socket: No such file or directory

110107 22:06:31 [ERROR] Do you already have another mysqld server running on socket: var/lib/mysql/mysql.sock

?

110107 22:06:31 [ERROR] Aborting

?

轉載于:https://blog.51cto.com/kuailemy/1127268

總結

以上是生活随笔為你收集整理的linux中源码编译安装mysql常见错误的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。