英文:
Moving databases from XAMPP to a standalone MySQL 8 server
问题
我之前使用xampp启动MySQL服务器,但最近我安装了MySQL服务器8,我需要将存储在xampp的data文件夹中的旧数据库转移到MySQL服务器8中的data文件夹。但当我尝试这样做时,重新启动MySQL服务时出现错误。有人可以解释一下我应该如何处理吗?
我尝试更改MySQL服务器8 Data文件夹内的所有文件,但仍然无法解决同样的问题。
英文:
before I used xampp to start mysql server but recently I installed mysql server 8 and I need to transfer old databases that are in data folder in xampp to data folder that is in mysql server 8 but when I did that I get error when I try to restart mysql service. Can somebody explain to me how should I go about this?
I tried to change all files that is inside of mySql server 8 Data folder but it doesn't work, I still get the same issue.
答案1
得分: 0
Xampp基于MariaDB,版本相对较低,因此直接复制目录可能会出现问题。建议通过mysqldump导出和导入。此外,需要确保它们使用不同的端口,否则会出现端口冲突,数据库无法启动。
英文:
Xampp is based on mariadb and its version is relatively low, so there will be problems directly by copying the directory. It is recommended to export and import through mysqldump.In addition, it is necessary to ensure that they use different ports, otherwise there will be port conflicts and the database will not start.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论