91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

mysql 多實例安裝

發布時間:2020-07-25 18:08:13 來源:網絡 閱讀:486 作者:cjp1984 欄目:MySQL數據庫

[root@mysqlserver ~]#rm -f /etc/init.d/mysqld

[root@mysqlserver ~]# mkdir -p /data/{3306,3307}/data

[root@mysqlserver Packages]# rpm -ivh tree-1.5.3-2.el6.x86_64.rpm

warning: tree-1.5.3-2.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY

Preparing...                ########################################### [100%]

   1:tree                   ########################################### [100%]


[root@mysqlserver Packages]# LANG=EN

[root@mysqlserver Packages]# tree /data

/data

|-- 3306

|   `-- data

`-- 3307

    `-- data


[root@mysqlserver tools]# ls

data      mysql-5.6.36         sendEmail-v1.56.tar.gz

data.zip  mysql-5.6.36.tar.gz  zabbix-2.4.4.tar.gz

[root@mysqlserver tools]# cp data/3306/my.cnf /data/3306/

[root@mysqlserver tools]# cp data/3307/my.cnf /data/3307/

[root@mysqlserver tools]# tree /data

/data

|-- 3306

|   |-- data

|   `-- my.cnf

`-- 3307

    |-- data

    `-- my.cnf

[root@mysqlserver tools]# cp data/3306/mysql /data/3306/

[root@mysqlserver tools]# cp data/3307/mysql /data/3307/

[root@mysqlserver tools]# tree /data

/data

|-- 3306

|   |-- data

|   |-- my.cnf

|   `-- mysql

`-- 3307

    |-- data

    |-- my.cnf

    `-- mysql

[root@mysqlserver tools]# chown -R mysql.mysql /data


[root@mysqlserver tools]# find /data/ -type f -name "mysql" |xargs ls -l

-rw-r--r-- 1 mysql mysql 1307 Jun  3 22:34 /data/3306/mysql

-rw-r--r-- 1 mysql mysql 1307 Jun  3 22:34 /data/3307/mysql

[root@mysqlserver tools]# find /data/ -type f -name "mysql" |xargs chmod +x

[root@mysqlserver tools]# find /data/ -type f -name "mysql" |xargs ls -l

-rwxr-xr-x 1 mysql mysql 1307 Jun  3 22:34 /data/3306/mysql

-rwxr-xr-x 1 mysql mysql 1307 Jun  3 22:34 /data/3307/mysql


[root@mysqlserver tools]# cd /application/mysql/scripts/

[root@mysqlserver scripts]# ls

mysql_install_db  mysqld

[root@mysqlserver scripts]# ./mysql_install_db --basedir=/application/mysql --datadir=/data/3306/data/ --user=mysql

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

        LANGUAGE = (unset),

        LC_ALL = (unset),

        LANG = "EN"

    are supported and installed on your system.

...................

2017-06-03 22:45:23 19995 [Note] Binlog end

2017-06-03 22:45:23 19995 [Note] InnoDB: FTS optimize thread exiting.

2017-06-03 22:45:23 19995 [Note] InnoDB: Starting shutdown...

2017-06-03 22:45:24 19995 [Note] InnoDB: Shutdown completed; log sequence number 1625987

OK


To start mysqld at boot time you have to copy

.........................



[root@mysqlserver scripts]# ./mysql_install_db --basedir=/application/mysql --datadir=/data/3307/data/ --user=mysql

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

        LANGUAGE = (unset),

        LC_ALL = (unset),

...................


[root@mysqlserver tools]# /data/3306/mysql  start

Starting MySQL...

[root@mysqlserver tools]# 170603 22:51:40 mysqld_safe error: log-error set to '/data/3306/mysql_oldboy3306.err', however file don't exists. Create writable for user 'mysql'.

[root@mysqlserver 3306]# touch mysql_oldboy3306.err

[root@mysqlserver 3306]# ls

data  my.cnf  mysql  mysql_oldboy3306.err

[root@mysqlserver 3306]# ll

total 12

drwxr-xr-x 5 mysql mysql 4096 Jun  3 22:45 data

-rw-r--r-- 1 mysql mysql 1899 Jun  3 22:29 my.cnf

-rwxr-xr-x 1 mysql mysql 1307 Jun  3 22:34 mysql

-rw-r--r-- 1 root  root     0 Jun  3 22:52 mysql_oldboy3306.err

[root@mysqlserver 3306]# chown mysql:mysql mysql_oldboy3306.err

[root@mysqlserver 3306]# /data/3306/mysql start

Starting MySQL...


[root@mysqlserver 3306]#netstat -lntup| grep 3306

[root@mysqlserver 3307]# netstat -lntup | grep 330[6-7]

tcp        0      0 :::3306                     :::*                        LISTEN      28142/mysqld

tcp        0      0 :::3307                     :::*                        LISTEN      28866/mysqld



報錯:

2017-06-03 22:56:18 24261 [ERROR] InnoDB: auto-extending data file ./ibdata1 is of a different size 768 pages (rounded down to MB) than specified in the .cnf file: initial 8192 pages, max 0 (relevant if non-zero) pages!

2017-06-03 22:56:18 24261 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!

解決:

[root@mysqlserver 3306]# cd data

[root@mysqlserver data]# pwd

/data/3306/data

[root@mysqlserver data]# ls

ibdata1  ib_logfile0  ib_logfile1  mysql  performance_schema  test

[root@mysqlserver data]# rm -rf ib*



報錯:

2017-06-03 23:33:27 26630 [ERROR] /application/mysql/bin/mysqld: unknown variable 'table_cache=614'

2017-06-03 23:33:27 26630 [ERROR] Aborting

解決:

[root@mysqlserver 3306]# vi my.cnf

#table_cache = 614  --注釋掉



向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

澳门| 西丰县| 内江市| 平乐县| 定陶县| 普安县| 河津市| 门源| 新干县| 辉南县| 阳原县| 西贡区| 新津县| 乌兰察布市| 西丰县| 资源县| 深泽县| 伊川县| 龙陵县| 健康| 余姚市| 丹凤县| 彩票| 东明县| 涟源市| 方正县| 寻乌县| 潜江市| 怀集县| 武义县| 遂宁市| 新化县| 梓潼县| 集贤县| 西丰县| 泾阳县| 大理市| 神农架林区| 诸城市| 白城市| 图木舒克市|