Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 7535  / 3 Years ago, tue, may 18, 2021, 9:50:10

I have Lubuntu 12.10 x86 on my notebook with all updates. I downloaded and install MySQL Community Server and MySQL Workbench. I learning Java and our next lesson will be about MySQL. I need to prepare - create test database. If I understand - I need use terminal for creating database? I tried mysql -u root -p and after entering password I get: ERROR 2002 (HYOOO) Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2). And I don't have this directory: /var/run/mysqld/mysqld.sock.



I read some pages about this problem and it is not still repaired.


More From » lubuntu

 Answers
3

Get mysql server status by entering sudo service mysqld status



If it is not running start it by entering sudo service mysqld start



If you get service not recognised message, install mysql server by entering:



sudo apt-get install mysql-server



This will install mysql, then start it by entering sudo service mysqld start


[#31877] Tuesday, May 18, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oatglori

Total Points: 313
Total Questions: 102
Total Answers: 111

Location: Guam
Member since Thu, May 18, 2023
1 Year ago
oatglori questions
;