2

I am trying to use MariaDB instead of MySQL on my windows 7 desktop. Below are the steps I have done so far.

  1. I have previously MySQL installed in my PC.
  2. I have not uninstalled that MySQL.
  3. Downloaded mariadb-5.5.30-win32.msi from mariadb.org
  4. installed mariadb-5.5 but while installing it asked me to change the service name(by default it was showing service name as MySQL and port number as 3306) as I have MySQL installed with the same service name & port no. So I changed the service name as MariaDB & port as 3305.

Now when connecting from HediSQL by port no: 3305 and localhost I am able to connect to MariaDB and it is showing the 4 default databases as same as MySQL i.e. information_schema, mysql ,performance_schema, and test.

Same way I can connect from HediSQL by port no: 3306(i.e. the default port no of my previously installed MySQL), I am able to connect to my old MySQL and showed my other application databases.

Till now it is absolutely fine.

But how to connect the MariaDB from command line like I used to connect for MySQL using the below command: mysql -uroot -proot i.e. the MySQL client.

and also I can see that in MariaDB 5.5/bin all .exe files (except some extra .exe files) are as same as MySQL/bin. Is it using the same MySQL server internally. if yes then why I need to install MariaDB separately?

Now To use MariaDB shall I need to import my application DB from MySQL to MariaDB?

I am really confused between these two DB. Please help.

Regards, Sandip

4

1 回答 1

0

如果您愿意,可以将数据目录从 MySQL 的 datadir 复制到 MariaDB 的 datadir 。正常关闭 MySQL 和 MariaDB(例如停止服务),然后复制文件。

最后,删除目标目录中的 ib_logfile0 和 ib_logfile1,因为你很可能在启动时遇到问题(不同的日志大小没有得到很好的处理)

于 2013-06-17T17:15:11.800 回答