Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Keep getting the following errors, from MySQL via my server:
Code:
mysqli_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
All these errors started after I installed osticket, via it's HOWTO. Found out that it sets root to it's default password, so have to run a root_reset script, but even that is also giving this error now!
Bash Script root_reset.sh
Code:
#! /bin/bash
# Script to reset ROOT & ADMIN MySQL passwords
# Must be run in the SUDO mode
service mysql stop;
#mysqld --skip-grant-tables < /Scripts/MySQL/root_reset.txt;
mysql --user=mysql < /Scripts/MySQL/root_reset.txt;
service mysql restart;
SQL input file root_reset.txt
Code:
FLUSH PRIVILEGES;
#SET PASSWORD FOR root@'localhost' = PASSWORD('newpass');
#UPDATE mysql.user SET Password=PASSWORD('newpass') WHERE User='root';
USE mysql;
UPDATE user SET Password = PASSWORD('newpass') WHERE Host = 'localhost' AND User = 'root';
UPDATE user SET Password = PASSWORD('newpass') WHERE Host = 'localhost' AND User = $USER;
UPDATE user SET Password = PASSWORD('newpass') WHERE Host = '%' AND User = 'root';
UPDATE user SET Password = PASSWORD('newpass') WHERE Host = '%' AND User = $USER;
FLUSH PRIVILEGES;
#ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';
quit;
Im at a weird place with this. I have never been able to actually purge 5.5.53, and so that is what I always get when I run:
Code:
mysql --version
I'm thinking that in addition to my line:
Code:
rm -rf /var/lib/mysql
I also need the line:
Code:
rm -rf /etc/mysql
To make sure nothing there is pointing back to ver 5.5.53
The weird part is, though I never was successful with the upgrade from 5.5.53 to 5.7; I can now login to mysql from the cmd line for both root and $USER and permissions etc are there, but never can login via phpmyadmin anymore. That would suggest issues in/with the config.inc.php config file for phpmyadmin, but can not see any issues there, when editing.
Anyway your comments on these thoughts appreciated. Also I notice all the db files are still in the /var/lib/mysql directory so that also indicates that the "rm" command for that is not working from the script. Wonder if something in those db files, especially the "mysql" database are what keeps making it think its on 5.5.53?
Check out the section on .frm files and the offset 0x33. This is the mysql version the table was built with. You can view it in your files with hexdump if you have it installed.
The Muon Software Center, as most know is totally useless, so out of frustration installed "Synaptic Package Manager"! Looking in there, the latest available MySQL version is 5.6, so rather obvious why my upgrade is failing.
So knew I needed either new repository or .deb file for this. Found a HOWTO at:
Additionally the 5.7 resource that the dpkg install is looking for, no longer exists, so the dpkg screen opens, but hangs, because the resource can not be found. My Magento says I need 5.7, so really have to get this installed.
However, I'm running the upgrade from 5.5.53 to 5.6, through synaptic package manager, but even that is erroring, so not sure what to do next!
When this come to the mysql install, the dpkg, though totally written wrong (keeps you in a loop, till you figure out what it's looking for), infact does have and installs MySQL 5.7, from the native ubuntu repositories.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.