setting up the mysql/mariadb database on slackware!
SlackwareThis 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.
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.
setting up the mysql/mariadb database on slackware!
Can anyone please guide me to setup the mysql/mariadb database server on my slackware?
Few weeks ago,I was practicing qt5 where I needed to access the mysql database.The qt5 documentation
suggested to use XAMPP for accessing mysql.I haven't tried XAMPP yet though.Because I want to run mysql
from scratch.I looked out for the documentation in mariadb and mysql websites,but I couldn't get the
job done.
Once again,I have stumbled into mysql while learning scripting.This was the thing that I always wanted to do.
I want to run mysql using terminal.
Please guide me to setup mysql(slackware uses mariadb if I am not wrong) on my slackware current.
I think I can learn mysql once I get to set it up.
I always forget to enable networking in /etc/rc.d/rc.mysqld
Code:
# To start MariaDB automatically at boot, be sure this script is executable:
# chmod 755 /etc/rc.d/rc.mysqld
# Before you can run MariaDB, you must have a database. To install an initial
# database, do this as root:
#
# mysql_install_db --user=mysql
#
# Note that the mysql user must exist in /etc/passwd, and the created files
# will be owned by this dedicated user. This is important, or else mysql
# (which runs as user "mysql") will not be able to write to the database
# later (this can be fixed with 'chown -R mysql.mysql /var/lib/mysql').
#
# To increase system security, consider using "mysql_secure_installation"
# as well. For more information on this tool, please read:
# man mysql_secure_installation
# To allow outside connections to the database comment out the next line.
# If you don't need incoming network connections, then leave the line
# uncommented to improve system security.
#SKIP="--skip-networking"
This isn't mentioned in the wiki page and the amount of time I've spent pulling my hair out over this one is pretty embarassing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.