LNMP环境下怎么修改mysql数据库名称?不用那种导出数据,重新建库,然后在导入的方法,因为数据太大了,再次导入不方便。 我尝试过用rename database old_db_name to new_db_name报错了,好像不支持版本:
rename database old_db_name to new_db_name
| version() | +---------------------+ | 10.0.23-MariaDB-log
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
Stop the database, then go to the data directory, change the folder name, and then restart.
Stop the database, then go to the data directory, change the folder name, and then restart.