日韩性视频-久久久蜜桃-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博客的全部內容,希望文章能夠幫你解決所遇到的問題。

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

主站蜘蛛池模板: 永久免费黄色片 | 国产性生活一级片 | brazzers欧美大波霸 | 日本专区在线 | 伊人伊人鲁 | 日韩精品一区二区三区在线 | 国产精品伦 | 欧美成人综合网站 | 免费激情网站 | 99日韩| 午夜精产品一区二区在线观看的 | 亚洲精品粉嫩小泬20p | 日本视频在线观看 | 日本老熟妇乱 | 久操网站 | 国产精品-区区久久久狼 | 狠狠草视频| 亚洲av电影一区二区 | 日本不卡123 | 一二级毛片 | 李宗瑞91在线正在播放 | 骚虎视频在线观看 | 一本大道一区二区 | 亚洲成熟丰满熟妇高潮xxxxx | 蜜桃av噜噜一区二区三区网址 | 91视频xxx| 狠狠干狠狠爱 | 亚色影库| 我的公把我弄高潮了视频 | 伊人久久麻豆 | 成人在线直播 | 久久国产成人 | 欧美人与动牲交xxxxbbbb | 精品中文字幕一区二区三区 | 国产精品亲子伦对白 | 高清免费毛片 | 日本亲与子乱xxx | 国产精品久久婷婷六月丁香 | 老司机免费精品视频 | 高清免费毛片 | 影音先锋欧美在线 | 免费看爱爱视频 | 九九日韩 | 少妇高潮一区二区三区 | 91午夜精品亚洲一区二区三区 | 精品国产一区二区三区久久狼黑人 | 亚洲av综合色区无码另类小说 | 青青草狠狠操 | 色吊丝av中文字幕 | 国产日韩欧美日韩大片 | 成人试看120秒体验区 | 五十路在线观看 | 综合色综合 | 国产精品久久国产精品99 | 亚洲av综合av一区二区三区 | 日日干夜夜拍 | 精品啪啪 | 欧美人妖乱大交 | 成年人天堂 | 99国产精品久久久久久久成人 | 黑人巨大精品一区二区在线 | 久久久久久久亚洲av无码 | 国产av无码专区亚洲av麻豆 | 国产在线一二三区 | 国产人妻一区二区三区四区五区六 | 国产精品宾馆在线精品酒店 | 91看片在线观看 | 欧美美女一区二区 | 超碰免费观看 | 农村老熟妇乱子伦视频 | 日韩aⅴ在线观看 | 日本亚洲最大的色成网站www | 亚洲一区二区三区 | 久久久久久国产精品一区 | 8090理论片午夜理伦片 | 不卡视频一区二区 | 91成人在线 | 最新av免费在线观看 | 一区二区三区在线电影 | 色视频在线免费观看 | 亚洲涩涩爱 | 欧美激情一级精品国产 | 日韩成人高清视频在线观看 | 国产怡红院 | 99精品视频免费看 | 亚洲精品视频在线观看视频 | 九九综合九九综合 | 91视频免费播放 | 日韩中文字幕在线免费观看 | 97夜夜 | 国产在线视频一区二区 | 欧美日韩一区二区三区不卡视频 | 精品一区二区不卡 | 精品国产第一页 | 国产精品成人无码免费 | 麻豆污视频 | 男人手机天堂 | 国产ts在线视频 | 亚洲蜜桃视频 |