LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-03-2017, 01:56 AM   #1
renegateqq
LQ Newbie
 
Registered: May 2017
Posts: 1

Rep: Reputation: Disabled
Unhappy OCS Inventory -- Problem after changing mariadb root password... Help me plesase


Sorry for my bad English, as I did not remember the root password of my server mariadb, I did the process of recovering password, enter the following commands:

- systemctl stop mariadb
- mysqld_safe --skip-grant-tables --skip-networking &
- mysql -u root
- use mysql;
- UPDATE user SET password = PASSWORD ('password') WHERE user = 'root';
- flush privileges;

After restarting my server mariadb and my web server, entering my ocs shows me the following error

ERROR: MySql connection problem
Can not connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
ERROR: MySql connection problem
Can not connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)

Please help me......
 
Old 05-03-2017, 08:31 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
It would appear OCS would also need to be told what the new password you set in mariaDB.

I haven't done it but this link talks about OCS inventory and mysql password so may help you determine how to modify OCS to use the new password. (Alternatively it may tell you what the old password was and you can reset mariaDB back to that.)

http://wiki.ocsinventory-ng.org/inde...ntation:Server
 
  


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] OCS Inventory IP Address of Clients shows Blank on Web Page Rohant Linux - Software 2 04-29-2015 02:23 AM
OCS Inventory NG aocferreira Linux - Networking 0 05-16-2011 09:51 AM
LXer: How To Install OCS Inventory NG Server 2 On CentOS 5.5 LXer Syndicated Linux News 0 01-26-2011 05:00 PM
LXer: GLPI - a great add-on to OCS Inventory LXer Syndicated Linux News 0 09-20-2006 05:21 PM
LXer: Howto install OCS Inventory NG LXer Syndicated Linux News 0 08-29-2006 01:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:28 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