[MDEV-4381] symbolic link issue Created: 2013-04-08  Updated: 2013-04-08  Resolved: 2013-04-08

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Mani Sundarigari Assignee: Unassigned
Resolution: Not a Bug Votes: 0
Labels: None
Environment:

linux



 Description   

I have created a symbolic link " ln -s /demarialab1/pocinst/socket/pocinst.sock /tmp/mysql.sock "
and executed mysql_secure_installation script, which went through successfully and ,i removed mysql.sock as " rm /tmp/mysql.sock "
once i remove it i am not able to check if the instance is up and running.

I am creating primary and DR databases on the same server,so i have to remove symbolic link.

Kindly advice.



 Comments   
Comment by Elena Stepanova [ 2013-04-08 ]
  • Find a configuration where you don't have to override the socket, e.g. use non-default socket location in your cnf file;
  • use TCP protocol to connect to the database.
Comment by Mani Sundarigari [ 2013-04-08 ]

can the symbolic link be created under any filesystem other than /tmp ?

it always throws this err when i remove the sym link.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2 "No such file or directory")

Comment by Elena Stepanova [ 2013-04-08 ]

>> can the symbolic link be created under any filesystem other than /tmp ?

Please read MySQL manual in regard to 'socket' option.

>> it always throws this err when i remove the sym link.
>> ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2 "No such file or directory")

Please read MySQL manual in regard to ways to connect to the server

Otherwise, please (again) consider signing up for a support plan and a training course from our partners SkySQL (www.skysql.com)

Comment by Mani Sundarigari [ 2013-04-08 ]

Thank You, i was able to fix through tcp.

Generated at Thu Feb 08 06:56:00 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.