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

溫馨提示×

溫馨提示×

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

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

MYSQL數據庫初始化時經常遇到的一些問題總結

發布時間:2020-05-26 17:29:51 來源:網絡 閱讀:335 作者:三月 欄目:MySQL數據庫

下面一起來了解下MYSQL數據庫初始化時經常遇到的一些問題,相信大家看完肯定會受益匪淺,文字在精不在多,希望MYSQL數據庫初始化時經常遇到的一些問題這篇短內容是你想要的。 

初始化MYSQL數據庫的時候提示缺少perl和data::dumper

這個時候需要安裝兩個包,

yum install perl

yum install autoconf

初始化MYSQL數據庫的時候提示innodb數據庫文件大小錯誤

2018-08-28 18:01:51 26794 [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 131072 pages, max 0 (relevant if non-zero) pages!
2018-08-28 18:01:51 26794 [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!
2018-08-28 18:01:51 26794 [ERROR] Plugin 'InnoDB' init function returned error.
2018-08-28 18:01:51 26794 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2018-08-28 18:01:51 26794 [ERROR] Unknown/unsupported storage engine: InnoDB
2018-08-28 18:01:51 26794 [ERROR] Aborting

這是因為系統中有其他my.cnf文件。只要初始化的時候指定初始化文件my.cnf,就可以了。

 /opt/mysql/scripts/mysql_install_db --datadir=/data/mysqldata/3306/data --basedir=/opt/mysql --defaults-file='/data/mysqldata/3306/my.cnf' 
Installing MySQL system tables...2018-08-28 18:04:30 0 [Note] /opt/mysql/bin/mysqld (mysqld 5.6.31-log) starting as process 26865 ...

OK

Filling help tables...2018-08-28 18:05:03 0 [Note] /opt/mysql/bin/mysqld (mysqld 5.6.31-log) starting as process 26889 ...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

  /opt/mysql/bin/mysqladmin -u root password 'new-password'
  /opt/mysql/bin/mysqladmin -u root -h mysql01 password 'new-password'

Alternatively you can run:

  /opt/mysql/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:

  cd . ; /opt/mysql/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl

  cd mysql-test ; perl mysql-test-run.pl

Please report any problems at http://bugs.mysql.com/

The latest information about MySQL is available on the web at

  http://www.mysql.com

Support MySQL by buying support/licenses at http://shop.mysql.com

WARNING: Found existing config file /opt/mysql/my.cnf on the system.
Because this file might be in use, it was not replaced,
but was used in bootstrap (unless you used --defaults-file)
and when you later start the server.
The new default config file was created as /opt/mysql/my-new.cnf,
please compare it with your file and take the changes you need.

WARNING: Default config file /etc/my.cnf exists on the system
This file will be read by default by the MySQL server
If you do not want to use this, either remove it, or use the

--defaults-file argument to mysqld_safe when starting the server

看完MYSQL數據庫初始化時經常遇到的一些問題總結這篇文章后,很多讀者朋友肯定會想要了解更多的相關內容,如需獲取更多的行業信息,可以關注我們的行業資訊欄目。

向AI問一下細節

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

AI

长兴县| 浪卡子县| 哈尔滨市| 晋宁县| 隆回县| 连山| 措美县| 德阳市| 苍南县| 道真| 通许县| 民丰县| 项城市| 张掖市| 石首市| 石泉县| 务川| 凌海市| 邛崃市| 黔西县| 伽师县| 广宁县| 平江县| 化州市| 志丹县| 澄江县| 九龙坡区| 惠来县| 余干县| 大庆市| 新疆| 民丰县| 夹江县| 磐安县| 海原县| 眉山市| 洮南市| 兴国县| 勐海县| 迁西县| 泰来县|