ラベル Ubuntu の投稿を表示しています。 すべての投稿を表示
ラベル Ubuntu の投稿を表示しています。 すべての投稿を表示

2019年6月4日火曜日

最大接続数214 4.15.0-46-ジェネリック#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データベースとしてインストールされているために起こる。 私はあなたのお好みに設定できますか前に言及しているのYumリポジトリを経由してMySQLを 。

ここに私のポイントは、しかしである、どのように我々は、これまで彼らが行うすべての作業のためにこれらの人々に感謝しますか?

これらのリポジトリの多くは、企業が実行され、これらの人々は、彼らが何のために支払いを受ける。 それは彼らのディストリビューションに利用可能になるまで、まだ、地域社会(のDebian / Ubuntuのを含む)は、Linuxの調査の一般的な観察/質問を通じて、人々の大半はアップグレードされません。 私はセキュリティとバグ修正の上に滞在したい方に起こるので、私はyumを持つリポジトリできるだけ頻繁に元からアップデートを。

私のポイントは、多くの作業を配布するため、これらのファイルのパッケージングになり、ほとんどの部分は、それはかなり報われない仕事のように見え、ある。 あなた自身を掘ると依存関係を見つけなければならなかったとき、私は、tarとgzipの古い(古いが、古いではない)日々を思い出す。 - 。/ configureを.. いや、ダウンロードを行って、それをインストールして何か他のものを必要とし、再試行してください.....

私は前にいくつかの時間がかかったでしょうしばらくすると25種類のパッケージを、アップグレードした。 ヤ ムやapt取得が遠く新品であり、私はここで、古いタイマーのような音が、私はちょうどそれが私たちのLinuxの経験のすべてを作るために舞台裏で働く すべての人々のおかげで、と言う、おろかはいいかもしれないと思った関連MySQLは、簡単かつスムーズにインストールされます。

私はOracleが利用可能になりました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のミント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)

MariaDB 10&5.5の両方が以下となった
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 /ダウンロードサイト。