LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-13-2013, 05:01 PM   #1
kelaskakap
Member
 
Registered: Dec 2013
Posts: 31

Rep: Reputation: Disabled
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
Code:
#removepkg mariadb
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
 
Old 12-13-2013, 05:07 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116
Why?
 
Old 12-13-2013, 05:30 PM   #3
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Here's some information:

http://www.linux.com/news/enterprise...adb-from-mysql
 
Old 12-13-2013, 05:53 PM   #4
kelaskakap
Member
 
Registered: Dec 2013
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Alien Bob View Post
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
 
Old 12-13-2013, 05:56 PM   #5
kelaskakap
Member
 
Registered: Dec 2013
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kikinovak View Post
thank you
 
Old 12-13-2013, 05:56 PM   #6
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,306
Blog Entries: 24

Rep: Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259
Quote:
Originally Posted by kelaskakap View Post
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.
 
Old 12-13-2013, 06:03 PM   #7
kelaskakap
Member
 
Registered: Dec 2013
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by astrogeek View Post
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?
 
Old 12-13-2013, 06:08 PM   #8
kelaskakap
Member
 
Registered: Dec 2013
Posts: 31

Original Poster
Rep: Reputation: Disabled
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?
 
Old 12-13-2013, 06:14 PM   #9
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,306
Blog Entries: 24

Rep: Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259
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.
 
Old 12-13-2013, 06:23 PM   #10
kelaskakap
Member
 
Registered: Dec 2013
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by astrogeek View Post
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
 
Old 12-13-2013, 06:24 PM   #11
bosth
Member
 
Registered: Apr 2011
Location: British Columbia, Canada
Posts: 304

Rep: Reputation: 127Reputation: 127
Quote:
Originally Posted by kelaskakap View Post
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.
 
Old 12-13-2013, 06:31 PM   #12
kelaskakap
Member
 
Registered: Dec 2013
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bosth View Post
That actually sounds like it could be a reason to keep using MySQL locally.
and I forgot to ask it lol
 
Old 12-13-2013, 06:40 PM   #13
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,306
Blog Entries: 24

Rep: Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259
Quote:
Originally Posted by kelaskakap View Post
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.

Code:
mysql -V
... 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.
 
Old 12-13-2013, 06:42 PM   #14
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,306
Blog Entries: 24

Rep: Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259
Quote:
Originally Posted by kelaskakap View Post
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.
 
Old 12-13-2013, 06:48 PM   #15
bosth
Member
 
Registered: Apr 2011
Location: British Columbia, Canada
Posts: 304

Rep: Reputation: 127Reputation: 127
Quote:
Originally Posted by astrogeek View Post
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),
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] MySQL, MariaDB, Perconal Server, what else?! lpallard Slackware 8 09-15-2013 03:14 PM
I need help to mariadb/mysql going on 13.1 milestone 4 new install. Glenn D. Linux - Software 1 08-22-2013 02:24 AM
MariaDB/MySQL uses too much RAM martvefun Linux - Server 3 06-23-2013 09:50 AM
[SOLVED] New MariaDB as replacement for Mysql vdemuth Slackware 10 03-31-2013 10:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration