Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
12-13-2013, 05:01 PM
|
#1
|
Member
Registered: Dec 2013
Posts: 31
Rep:
|
Keep using MySQL instead of MariaDB
Hello,
I just upgrade my Slackware from 14.0 to 14.1. I know 14.1 comes with Maria DB packages, but actually I still wanna use MySQL instead of Maria DB. How to use MySQL instead of Maria DB? I want to uninstall Maria DB and re-install MySQL (is there package/slackbuild script of MySQL 5.6.x for Slackware 14.1?)
this is my packages list
Code:
bash-4.2$ ls /var/log/packages/|grep mysql
mysql-5.5.27-x86_64-1
mysql-compat32-5.5.27-x86_64-1compat32
mysql-workbench-gpl-5.2.47-x86_64-1_SBo
bash-4.2$ ls /var/log/packages/|grep maria
mariadb-5.5.32-x86_64-1
mariadb-compat32-5.5.32-x86_64-1compat32
bash-4.2$
actually I have uninstall MariaDB with this command
removing mariadb-5.5.32-x86_64-1 and mariadb-compat32-5.5.32-x86_64-1compat32
but I still cannot run my old mysql
Help me, please, guys..
thank you so much
|
|
|
12-13-2013, 05:07 PM
|
#2
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
Why?
|
|
|
12-13-2013, 05:30 PM
|
#3
|
MLED Founder
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453
|
|
|
|
12-13-2013, 05:53 PM
|
#4
|
Member
Registered: Dec 2013
Posts: 31
Original Poster
Rep:
|
Quote:
Originally Posted by Alien Bob
Why?
|
I don't know, just still not familiar with MariaDB. is this compitable with all database I've already created with MySQL? query language, php code, are those still same ? like connecting ex, mysql_connect() , etc. one of my database using innodb, is maria db support it?
thanks
|
|
|
12-13-2013, 05:56 PM
|
#5
|
Member
Registered: Dec 2013
Posts: 31
Original Poster
Rep:
|
Quote:
Originally Posted by kikinovak
|
thank you
|
|
|
12-13-2013, 05:56 PM
|
#6
|
Moderator
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,306
|
Quote:
Originally Posted by kelaskakap
I don't know, just still not familiar with MariaDB. is this compitable with all database I've already created with MySQL? query language, php code, are those still same ? like connecting ex, mysql_connect() , etc. one of my database using innodb, is maria db support it?
thanks
|
Literally everything will work exactly as before, except better!
MariaDB is a "drop in replacement" for MySQL, even the filenames are the same.
*** UPDATE ***
I had many of the same reservations when I made the switch. I installed MariaDB and did the normal MySQL version update functions on my live databases. Not a single hickup. Not a single issue. The only difference was improved performance.
Last edited by astrogeek; 12-13-2013 at 05:59 PM.
|
|
|
12-13-2013, 06:03 PM
|
#7
|
Member
Registered: Dec 2013
Posts: 31
Original Poster
Rep:
|
Quote:
Originally Posted by astrogeek
Literally everything will work exactly as before, except better!
MariaDB is a "drop in replacement" for MySQL, even the filenames are the same.
*** UPDATE ***
I had many of the same reservations when I made the switch. I installed MariaDB and did the normal MySQL version update functions on my live databases. Not a single hickup. Not a single issue. The only difference was improved performance.
|
thank you for the information. so if I want to remove my mysql package by executing #removepkg mysql, maria db can still running?
|
|
|
12-13-2013, 06:08 PM
|
#8
|
Member
Registered: Dec 2013
Posts: 31
Original Poster
Rep:
|
sorry forget to ask,
if I use maria db to build database for website, and the hosting provider still using mysql, is this still possible to dump file.sql then import into hosting provider? are they still compatible?
|
|
|
12-13-2013, 06:14 PM
|
#9
|
Moderator
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,306
|
Not sure what you mean by that.
If you mean can you install MariaDB and have it running, then remove MySQL, no.
As I said, the filenames are identical, so only one can be installed at a time.
You should read this quick reference to convert to mariadb for oreintation. But as it says, you should view it just as a mysql version update.
If you are updating a live box you will need to kill the MySQL server, then removepkg mysql, then installpkg mariadb and run mysql_upgrade.
As ALWAYS even with MySQL upgrades it is wise to first do mysqldump of your databases - just in case.
|
|
|
12-13-2013, 06:23 PM
|
#10
|
Member
Registered: Dec 2013
Posts: 31
Original Poster
Rep:
|
Quote:
Originally Posted by astrogeek
Not sure what you mean by that.
If you mean can you install MariaDB and have it running, then remove MySQL, no.
As I said, the filenames are identical, so only one can be installed at a time.
You should read this quick reference to convert to mariadb for oreintation. But as it says, you should view it just as a mysql version update.
If you are updating a live box you will need to kill the MySQL server, then removepkg mysql, then installpkg mariadb and run mysql_upgrade.
As ALWAYS even with MySQL upgrades it is wise to first do mysqldump of your databases - just in case.
|
sorry my english's bad,
I have this packages
Code:
bash-4.2$ ls /var/log/packages/|grep mysql
mysql-5.5.27-x86_64-1
mysql-compat32-5.5.27-x86_64-1compat32
mysql-workbench-gpl-5.2.47-x86_64-1_SBo
bash-4.2$ ls /var/log/packages/|grep maria
mariadb-5.5.32-x86_64-1
mariadb-compat32-5.5.32-x86_64-1compat32
bash-4.2$
if I uninstall mysql-5.5.27-x86_64-1 mysql-compat32-5.5.27-x86_64-1compat32 by running removepkg, is that safe? I mean, I can still use maria db?
then, if I build website and use maria db in my computer, and I want to upload to the server, but the server still use mysql instead of maria db, is there any problem with that?
thank you, sorry
|
|
|
12-13-2013, 06:24 PM
|
#11
|
Member
Registered: Apr 2011
Location: British Columbia, Canada
Posts: 304
Rep:
|
Quote:
Originally Posted by kelaskakap
sorry forget to ask,
if I use maria db to build database for website, and the hosting provider still using mysql, is this still possible to dump file.sql then import into hosting provider? are they still compatible?
|
That actually sounds like it could be a reason to keep using MySQL locally.
|
|
|
12-13-2013, 06:31 PM
|
#12
|
Member
Registered: Dec 2013
Posts: 31
Original Poster
Rep:
|
Quote:
Originally Posted by bosth
That actually sounds like it could be a reason to keep using MySQL locally.
|
and I forgot to ask it lol
|
|
|
12-13-2013, 06:40 PM
|
#13
|
Moderator
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,306
|
Quote:
Originally Posted by kelaskakap
sorry my english's bad,
I have this packages
Code:
bash-4.2$ ls /var/log/packages/|grep mysql
mysql-5.5.27-x86_64-1
mysql-compat32-5.5.27-x86_64-1compat32
mysql-workbench-gpl-5.2.47-x86_64-1_SBo
bash-4.2$ ls /var/log/packages/|grep maria
mariadb-5.5.32-x86_64-1
mariadb-compat32-5.5.32-x86_64-1compat32
bash-4.2$
if I uninstall mysql-5.5.27-x86_64-1 mysql-compat32-5.5.27-x86_64-1compat32 by running removepkg, is that safe? I mean, I can still use maria db?
then, if I build website and use maria db in my computer, and I want to upload to the server, but the server still use mysql instead of maria db, is there any problem with that?
thank you, sorry
|
It appears that you have BOTH mysql and mariadb packages installed at the same time which is not correct. So which is actually running as 'mysql' would be the last one that you installed because it would have overwritten the earlier one.
... will tell you which (I bet you are running MariaDB and don't know it! That would be reassuring!).
To make sure you have a clean installation I would suggset this (as root):
Code:
/etc/rc.d/rc.mysqld stop
removepkg mysql-compat
removepkg mysql
removapkg mariadb-compat
removepkg mariadb
installpkg mariadb path/to/package
installpkg mariadb-compat path/to/package
chmod +x /etc/rc.d/rc.mysqld
/etc/rc.d/rc.mysqld start
mysql_upgrade (see man page for options)
You should be good to go!
I don't think that you will need to rebuild mysql-workbench due to this change.
|
|
|
12-13-2013, 06:42 PM
|
#14
|
Moderator
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,306
|
Quote:
Originally Posted by kelaskakap
sorry forget to ask,
if I use maria db to build database for website, and the hosting provider still using mysql, is this still possible to dump file.sql then import into hosting provider? are they still compatible?
|
That is not a problem - they will be compatible - I do it regularly.
|
|
|
12-13-2013, 06:48 PM
|
#15
|
Member
Registered: Apr 2011
Location: British Columbia, Canada
Posts: 304
Rep:
|
Quote:
Originally Posted by astrogeek
That is not a problem - they will be compatible - I do it regularly.
|
So there are no SQL features in MariaDB that aren't in MySQL? (genuine question, I use PostgreSQL),
|
|
|
All times are GMT -5. The time now is 12:21 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|