显示标签为“Ubuntu”的博文。显示所有博文
显示标签为“Ubuntu”的博文。显示所有博文

2019年6月4日星期二

Max_connections 214 4.15.0-46-generic#49-Ubuntu

因此,max_connections從my.cnf文件中設置的值下降到214的問題在Ubuntu上已經存在了一段時間。

作為一個例子,它在2015年被注意到



我最近又碰到了這個,並通過以下步驟解決了。


# cp /lib/systemd/system/mysql.service /etc/systemd/system/
# cd /etc/systemd/system/
# vi mysql.service

LimitNOFILE=infinity
LimitMEMLOCK=infinity

# systemctl daemon-reload
# systemctl restart mysql


完成這些步驟後,MySQL連接在my.cnf文件中的給定參數處穩定。

2014年1月4日星期六

辛勤工作,被忽視....

Originally posted: http://anothermysqldba.blogspot.com/2014/01/hard-work-that-goes-unnoticed.html

我今天花了一點時間,並更新了我的Linux發行版之一。 在這種分配我碰巧有Percona的5.6安裝為MySQL數據庫。 我之前如何設置你的選擇都提到的MySQL通過yum軟件庫

在這裡我想說的是,雖然,我們怎麼永遠感謝這些人對他們做的工作?

許多這些存儲庫是由公司經營和這些人得到報酬為他們做什麼。 然而,通過Linux(包括Debian / Ubuntu的)社會調查的和一般的觀察/問題,大多數人都不會升級,直到它可在它們的分佈。 我碰巧是一個誰願意留在安全性和bug修復頂部,所以我有yum的存儲庫從源更新盡可能多地。

我的觀點是,大量的工作進入這些文件的包裝分發和在大多數情況下,它看起來像一個漂亮的吃力不討好的工作。 我記得tar和gzip的舊的(不老但舊)天,當你不得不去挖掘和發現依賴自己。 - 。/ configure的.. 都能跟得上需要別的東西去下載並安裝然後再試一次.....

我剛剛升級25個不同的包在幾分鐘,這將之前已經採取了一些時間。 雖然百勝和APT得到的是新遠,我聽起來像一個舊的計時器在這裡,我只是認為這可能是不錯的說感謝,向所有誰在幕後工作,使我們所有的Linux經驗的人,更遑論有關MySQL的安裝,更方便,更流暢。

我將指出,甲骨文確實有5.6包現已推出。


我記得我以前的帖子提到它是如何不在場。

2013年10月11日星期五

Percona的5.6(MariaDB的與MySQL)及Debian / Ubuntu的

Original post: http://anothermysqldba.blogspot.com/2013/10/percona-56-mariadb-mysql-debianubuntu.html

輕鬆設置並運行在Debian Percona的5.6。
這個例子是運行Linux Mint的15



Percona的5.6:
http://www.percona.com/doc/percona-server/5.5/installation/apt_repo.html
linuxmint ~ # apt-get install percona-server-server-5.6 percona-server-client-5.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libaio1 libdbd-mysql-perl libdbi-perl libmysqlclient18 libmysqlclient18.1 libnet-daemon-perl libplrpc-perl
percona-server-common-5.6
Suggested packages:
tinyca
The following NEW packages will be installed:
libaio1 libdbd-mysql-perl libdbi-perl libmysqlclient18 libmysqlclient18.1 libnet-daemon-perl libplrpc-perl
percona-server-client-5.6 percona-server-common-5.6 percona-server-server-5.6
0 upgraded, 10 newly installed, 0 to remove and 3 not upgraded.
Need to get 40.6 MB of archives.
After this operation, 140 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
linuxmint ~ # mysql -e "CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'"
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
linuxmint ~ # mysql -e "CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'" -p
Enter password:
linuxmint ~ # mysql -e "CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'" -p
Enter password:
linuxmint ~ # mysql -e "CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'" -p
Enter password:
linuxmint ~ #
linuxmint ~ # mysql -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 52
Server version: 5.6.13-rc61.0 Percona Server (GPL), Release 61.0

Copyright (c) 2009-2013 Percona LLC and/or its affiliates
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> SELECT VERSION();
+---------------+
| VERSION() |
+---------------+
| 5.6.13-rc61.0 |
+---------------+
1 row in set (0.04 sec)

10&5.5 MariaDB的都具有以下
https://downloads.mariadb.org/mariadb/repositories/


linuxmint ~ # apt-get install mariadb-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

所以,你需要檢討
https://mariadb.com/kb/en/installing-mariadb-deb-files/

linuxmint ~ # apt-cache show mysql-common | grep Version
Version: 5.5.33a+maria-1~raring
linuxmint ~ # apt-cache show libmysqlclient18 | grep Version
Version: 5.5.33a+maria-1~raring

linuxmint ~ # apt-get install mariadb-server-5.5 mariadb-client-5.5 libmysqlclient18=5.5.33a+maria-1~raring mysql-common=5.5.33a+maria-1~raring
Reading package lists... Done
Building dependency tree
Reading state information... Done

MySQL的:
http://dev.mysql.com/downloads/mysql /
這是可能的Debian軟件包下載dev.mysql.com /下載網站。