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

歡迎訪問 生活随笔!

生活随笔

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

数据库

libmysqld_dev linux,解决mysql安装mysqld doesn\'t exist or is not-鸟哥のlinux-ChinaUnix博客

發布時間:2024/9/27 数据库 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 libmysqld_dev linux,解决mysql安装mysqld doesn\'t exist or is not-鸟哥のlinux-ChinaUnix博客 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

最近phpwind升級8.7后,經常出現宕機的現象,不是Apache卡死,吃光內存機器重啟,就是mysql數據庫被鎖,無奈!

多個原因,apache的版本過低,導致執行效率慢;另外數據庫版本過低,查詢語句多時,自動鎖!網站幾乎不能訪問!另外就是程序可能也有點問題,測試頁面可以正常訪問!主頁卻不能打開!

把apache升級到2.2版本,程序轉移到了另一臺機器上,搭建LAMP環境,用于編譯php, 已經安裝好了mysql!? 試著運行,發現機器運行正常,無負載超高的現象,可是網站還是會卡,數據庫還是會鎖死!

聯系到phpwind官方尋找技術支持,的確有bug,官方同意幫我們解決!

我們也考慮到把數據版本也升級下,由于機器暫時緊缺,只能在程序上搭建,一條船上前線,哈哈!

采用二進制文件安裝mysql

初始化正常,添加mysql服務,可是啟動的時候出現問題了

[root@localhost scripts]# /usr/local/mysql5.0.45/bin/mysqld_safe --defaults-file=/etc/my.cnf? --user=mysql? &

[1] 31358

[root@localhost scripts]# The file /usr/local/mysql/bin/mysqld doesn't exist or is not executable

Please do a cd to the mysql installation directory and restart

this script from there as follows:

./bin/mysqld_safe.

See http://dev.mysql.com/doc/mysql/en/mysqld_safe.html for more

information

\

[1]+? Exit 1????????????????? /usr/local/mysql5.0.45/bin/mysqld_safe --defaults-file=/etc/my.cnf --user=mysql

查看了很多資料,最終還是官方的文檔給力:

5. Change location into the installation directory:

shell> cd mysql

You will find several files and subdirectories in the `mysql'

directory. The most important for installation purposes are the

`bin' and `scripts' subdirectories:

* The `bin' directory contains client programs and the server.

You should add the full pathname of this directory to your

`PATH' environment variable so that your shell finds the MySQL

programs properly. See *Note environment-variables::.

* The `scripts' directory contains the `mysql_install_db'

script used to initialize the `mysql' database containing the

grant tables that store the server access permissions.

6. Ensure that the distribution contents are accessible to `mysql'.

If you unpacked the distribution as `mysql', no further action is

required. If you unpacked the distribution as `root', its contents

will be owned by `root'. Change its ownership to `mysql' by

executing the following commands as `root' in the installation

directory:

shell> chown -R mysql .

shell> chgrp -R mysql .

The first command changes the owner attribute of the files to the

`mysql' user. The second changes the group attribute to the

`mysql' group.

7. If you have not installed MySQL before, you must create the MySQL

data directory and initialize the grant tables:

shell> scripts/mysql_install_db --user=mysql

If you run the command as `root', include the `--user' option as

shown. If you run the command while logged in as that user, you

can omit the `--user' option.

The command should create the data directory and its contents with

`mysql' as the owner.

After creating or updating the grant tables, you need to restart

the server manually.

8. Most of the MySQL installation can be owned by `root' if you like.

The exception is that the data directory must be owned by `mysql'.

To accomplish this, run the following commands as `root' in the

installation directory:

shell> chown -R root .

shell> chown -R mysql data

9. If you want MySQL to start automatically when you boot your

machine, you can copy `support-files/mysql.server' to the location

where your system has its startup files. More information can be

found in the `support-files/mysql.server' script itself and in

*Note automatic-start::.

我之前執行的是?? chown -R mysql:mysql? .

官方: shell> chown -R root .

shell> chown -R mysql data

最后修正重啟:

[root@localhost mysql5.0.45]# chown -R root .

[root@localhost mysql5.0.45]# chown -R mysql data

[root@localhost mysql5.0.45]# ./bin/mysqld_safe --user=mysql &

[1] 31480

[root@localhost mysql5.0.45]# Starting mysqld daemon with databases from /mysqldata

關閉重啟:

[root@localhost mysql5.0.45]# /usr/local/mysql5.0.45/bin/mysqladmin? -u root? shutdown

STOPPING server from pid file /mysqldata/localhost.localdomain.pid

110928 10:49:34? mysqld ended

[1]+? Done??????????????????? ./bin/mysqld_safe --user=mysql

[root@localhost mysql5.0.45]# ./bin/mysqld_safe --user=mysql &

[1] 31654

[root@localhost mysql5.0.45]# Starting mysqld daemon with databases from /mysqldata

正常!ok

閱讀(20826) | 評論(0) | 轉發(4) |

總結

以上是生活随笔為你收集整理的libmysqld_dev linux,解决mysql安装mysqld doesn\'t exist or is not-鸟哥のlinux-ChinaUnix博客的全部內容,希望文章能夠幫你解決所遇到的問題。

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

主站蜘蛛池模板: 日韩一区二区三区在线免费观看 | 日本免费视频 | 国产69精品久久久久777 | 青青青青在线 | 老牛影视av一区二区在线观看 | 少妇一级淫片免费播放 | 国产精品四虎 | 伊人久久精品视频 | 住在隔壁的她动漫免费观看全集下载 | 在线看福利影 | 老牛影视av一区二区在线观看 | 精品视频免费 | 日韩a在线观看 | 色婷婷狠狠18禁久久 | 99久久99 | 91麻豆精品久久久久蜜臀 | 日本一区二区免费电影 | 呦呦网 | 亚洲天堂成人在线观看 | 97超碰福利 | 亚洲免费大全 | 国产天堂在线观看 | 青青综合网 | 日本在线成人 | 国产精品suv一区二区 | 最色成人网| 福利二区三区 | 一区二区三区中文字幕 | 日韩综合一区 | 一级片一级 | 日日夜夜天天 | 日本大尺度做爰呻吟舌吻 | 成人欧美视频在线观看 | 777毛片 | 一级视频片 | 亚洲熟女少妇一区二区 | 丁香社区五月天 | 亚洲AV无码片久久精品 | 精品乱子伦 | 狠狠鲁狠狠干 | 97超碰国产精品无码蜜芽 | 久久久香蕉视频 | 毛片久久久久久 | 青青青青在线 | 97精品在线视频 | 永久视频在线观看 | 超碰自拍 | 国产一级理论片 | 五级 黄 色 片 | 国产精品久久免费 | 色香蕉在线 | 亚洲视频在线播放免费 | 国产极品美女高潮无套嗷嗷叫酒店 | 精品在线一区二区三区 | 久久久久99精品成人片三人毛片 | 久久久综合av | 黄色片免费在线观看 | 性感少妇av| 奇米777第四色 | 日韩污视频在线观看 | av在哪里看 | 欧美成人一二三 | 久久伊人久久 | av在哪里看 | 精品国产一区二区三区久久久 | 欧美精品1区2区3区 精品成人一区 | 91精品国产高潮对白 | 葵司ssni-879在线播放 | 性盈盈影院中文字幕 | 亚洲性视频网站 | 伊人ab| 久久久新| 亚洲精品一区在线观看 | a色视频| 国产精品第三页 | 人妖粗暴刺激videos呻吟 | 粉嫩av一区二区三区四区五区 | 精品一区二区中文字幕 | 夜夜爽日日澡人人添 | 成人在线不卡 | xxxx精品 | 九九av在线| 美女a视频 | 欧美视频一区二区三区四区 | 成人黄色一区二区 | 国产亚洲一区二区三区在线观看 | 国产在线观看精品 | 337p亚洲精品色噜噜噜 | 国产日韩亚洲欧美 | 超碰96在线| 修女也疯狂3免费观看完整版 | 最新黄色网页 | 色综合九九 | 久久成年网 | 国产91传媒 | 国产电影一区二区三区爱妃记 | xxxx精品 | 久久亚洲精华国产精华液 | 亚洲精品天堂在线观看 |