将数据库从XAMPP迁移到独立的MySQL 8服务器

huangapple go评论63阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年2月8日 08:23:41
  • 转载请务必保留本文链接:https://go.coder-hub.com/75380303.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定