xeNium Posted March 6, 2016 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 94 Reputation: 0 Joined: 04/01/12 Last Seen: January 1, 2017 Share Posted March 6, 2016 I've read both rAthena and Hercules tutorials about Installation on CentOS platform, but I am struggling to start MySQL service. [root@localhost ~]# /etc/init.d/mysqld start bash: /etc/init.d/mysqld: No such file or directory [root@localhost ~]# service mysql start failed to start mysql.service unit mysql.service failed to load no such file or directory [root@localhost ~]# mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) I also have installed MariaDB, and it does work, unfortunately I don't know how to use it. Do you have up-to-date tutorial for CentOS 7 platform? Quote Link to comment Share on other sites More sharing options...
0 yepp Posted June 11, 2016 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 26 Reputation: 2 Joined: 05/29/16 Last Seen: July 19, 2016 Share Posted June 11, 2016 (edited) MariaDB is a fork of MySql so it is 99% compatible and it is much better. Everything else is the same. mysql -u(username) -p(password) (databasename) or mysql -p Like that. No difference. I also have CentOS in my server and I love its stability. --EDIT-- Oh to answer your question, I see that you are using CentOS 7. Try this: sudo systemctl start mariadb To check if it's installed: rpm -qa | grep mariadb In case mariadb-server is not installed: sudo yum install mariadb-server Edited June 11, 2016 by yepp Quote Link to comment Share on other sites More sharing options...
0 Neffletics Posted March 6, 2016 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 149 Reputation: 24 Joined: 02/11/16 Last Seen: May 16, 2023 Share Posted March 6, 2016 Hmmm... better reinstall your OS and follow the guide again. I just followed the guide before (2 years ago, I think) and it worked fine. Quote Link to comment Share on other sites More sharing options...
0 HaARiZz Posted March 22, 2016 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 76 Reputation: 12 Joined: 01/13/12 Last Seen: November 18, 2022 Share Posted March 22, 2016 Hi there,Probably there have something wrong with your MySQL.You can try to completely remove and reinstall MySQL in your VPS. You can try to follow this step for reinstall your MySQL : Step 1: Uninstall MySQL Packages First uninstall all the MySQL packages installed on your server # yum remove mysql mysql-server Step 2: Remove MySQL Directory Now we need to remove MySQL data directory from system which by default exists at /var/lib/mysql. If you didn’t find this, It may be changed to some other place, which you can find in my.cnf file with variable datadir. Delete the /var/lib/mysql directory from system but we prefer to rename it to keep a backup of existing files. # mv /var/lib/mysql /var/lib/mysql_old_backup Step 3: Install MySQL Packages Again After removing MySQL completely, install it again using yum package manager, It will re create mysql directory under /var/lib/. # yum install mysql mysql-server After completing above three steps, now you have a fresh MySQL install on your system with new settings. You can now refer to this wiki for reconfigure MySQL for your server.https://rathena.org/wiki/Installation_(CentOS) Quote Link to comment Share on other sites More sharing options...
0 Spre Posted April 23, 2016 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 103 Reputation: 28 Joined: 09/20/12 Last Seen: January 14, 2019 Share Posted April 23, 2016 looks like you didnt install it. run the following mysql --version if it returns the version run locate mysql to see where it is. Quote Link to comment Share on other sites More sharing options...
Question
xeNium
I've read both rAthena and Hercules tutorials about Installation on CentOS platform, but I am struggling to start MySQL service.
Do you have up-to-date tutorial for CentOS 7 platform?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.