mysql5.7單實例自啟動服務(wù)配置過程
更新時間:2021年09月06日 10:41:29 作者:神慕蔡蔡
這篇文章主要介紹了mysql5.7單實例自啟動服務(wù)配置的過程,附含配置源碼,有需要的朋友可以借鑒參考下,希望可以有所幫助,感謝閱讀
1.mysql版本
[root@clq system]# mysql -v Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 49 Server version: 5.7.33 MySQL Community Server (GPL)
2.配置mysqld.service文件
[Unit] Description=mysql server daemon After=network.target mysql-keygen.target [Service] Type=forking ExecStart=/usr/local/mysql/support-files/mysql.server start ExecStop=/usr/local/mysql/support-files/mysql.server stop ExecReload=/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target [Install] WantedBy=multi-user.target
3.mysqld.service文件放置的地方
/usr/lib/systemd/system/mysqld.service
4.自啟動
systemctl daemon-reload systemctl enable --now mysqld [root@mysql ~]# ss -antl State Recv-Q Send-Q Local Address:Port Peer Address:Port Process LISTEN 0 128 0.0.0.0:111 0.0.0.0:* LISTEN 0 32 192.168.122.1:53 0.0.0.0:* LISTEN 0 128 0.0.0.0:22 0.0.0.0:* LISTEN 0 5 127.0.0.1:631 0.0.0.0:* LISTEN 0 128 [::]:111 [::]:* LISTEN 0 128 [::]:22 [::]:* LISTEN 0 5 [::1]:631 [::]:* LISTEN 0 80 *:3306 *:*
以上就是mysql5.7單實例自啟動服務(wù)配置過程的詳細內(nèi)容,更多關(guān)于mysql5.7單實例自啟動服務(wù)配置的資料請關(guān)注腳本之家其它相關(guān)文章!
相關(guān)文章
mysql 中存在null和空時創(chuàng)建唯一索引的方法
據(jù)庫默認值都有null,此時創(chuàng)建唯一索引時要注意了,此時數(shù)據(jù)庫會把空作為多個重復(fù)值2014-10-10淺談Using filesort和Using temporary 為什么這么慢
本文主要介紹了Using filesort和Using temporary為什么這么慢,文中通過示例代碼介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們可以參考一下2022-02-02windows下mysql 5.7版本中修改編碼為utf-8的方法步驟
mysql的默認編碼是拉丁(latin1),當(dāng)輸入中文的時候就會報錯,所以需要將編碼修改為utf8,從網(wǎng)上找了相關(guān)教程都不可以,索性自己摸索后分享給大家,下面這篇文章主要給大家介紹了在mysql 5.7版本中如何修改編碼為utf-8的方法步驟,需要的朋友可以參考下。2017-06-06mysql 8.0 Windows zip包版本安裝詳細過程
這篇文章主要為大家詳細介紹了mysql 8.0 Windows zip包版本安裝詳細過程,以及密碼認證插件修改,具有一定的參考價值,感興趣的小伙伴們可以參考一下2018-05-05批量清除128組節(jié)點db上面過期的binlog釋放磁盤空間實現(xiàn)思路
在 一臺db跳轉(zhuǎn)機上面, 寫一個腳本,訪問slave,遠程獲取正在復(fù)制的master上面的binlog位置, 然后再遠程去purge master上面的binlog2013-06-06