国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > MySQL > 正文

mysql 多實例安置

2024-07-24 12:36:23
字體:
來源:轉載
供稿:網友
  [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: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!

(編輯:武林網)

上一篇:MySQL-長事務解說

下一篇:MySQL存儲步驟

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 固安县| 和硕县| 莲花县| 阜新市| 阜平县| 嘉荫县| 马龙县| 舒兰市| 贡嘎县| 沅江市| 舞钢市| 文登市| 庄浪县| 仙游县| 东乡族自治县| 读书| 五原县| 唐山市| 芦溪县| 竹北市| 临桂县| 铜梁县| 南丹县| 章丘市| 贵南县| 漠河县| 樟树市| 桃江县| 青铜峡市| 寿光市| 嵩明县| 德兴市| 尼木县| 宜川县| 玉树县| 龙山县| 贵州省| 兰溪市| 会昌县| 新野县| 横峰县|