MYSQL数据库初始化时经常遇到的一些问题总结
发表于:2025-11-09 作者:千家信息网编辑
千家信息网最后更新 2025年11月09日,下面一起来了解下MYSQL数据库初始化时经常遇到的一些问题,相信大家看完肯定会受益匪浅,文字在精不在多,希望MYSQL数据库初始化时经常遇到的一些问题这篇短内容是你想要的。初始化MYSQL数据库的时候
千家信息网最后更新 2025年11月09日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: InnoDB2018-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 ...OKFilling help tables...2018-08-28 18:05:03 0 [Note] /opt/mysql/bin/mysqld (mysqld 5.6.31-log) starting as process 26889 ...OKTo start mysqld at boot time you have to copysupport-files/mysql.server to the right place for your systemPLEASE 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_installationwhich will also give you the option of removing the testdatabases and anonymous user created by default. This isstrongly 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.plPlease report any problems at http://bugs.mysql.com/The latest information about MySQL is available on the web at http://www.mysql.comSupport MySQL by buying support/licenses at http://shop.mysql.comWARNING: 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 systemThis file will be read by default by the MySQL serverIf you do not want to use this, either remove it, or use the
--defaults-file argument to mysqld_safe when starting the server
看完MYSQL数据库初始化时经常遇到的一些问题总结这篇文章后,很多读者朋友肯定会想要了解更多的相关内容,如需获取更多的行业信息,可以关注我们的行业资讯栏目。
数据
数据库
时候
问题
文件
内容
更多
行业
提示
肯定
受益匪浅
两个
信息
大小
文字
朋友
栏目
篇文章
系统
读者
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
静安区智能化软件开发诚信服务
关于网络技术运用
数据库集合操作算重复吗
数据库安全包括哪些部分
三菱服务器AL163代码
前沿信息网络技术的网站
常用网络安全工具软件
关系数据库中的主键是
查询数据库表具有什么权限
ti软件开发平台
通信行业网络安全管理
intel服务器主板开关跳线
net软件开发课程
做服务器多少钱
网络安全管理的外包管理制度
软件开发商怎么联系
成都系统软件开发服务费
网络技术在生产计划管理中的应用
数据库动态角色设计
开源数据库连接工具比较
网红服务器推荐我的世界
数据库工具dbeaver
网络安全机遇和挑战
27岁还可以学软件开发
插入数据库之前查同
如何分析计算机网络技术男女比例
工程软件开发后如何盈利
大数据时代网络安全的意义
软件开发工程师考哪个
2021网络安全优秀企业投票