I am new to mysql dba, and I am trying to install mysql in linux envirnoment on my personal laptop. I have a problem in starting the mysql server. I install it with the following commands:
shell> groupadd mysql shell> useradd -r -g mysql -s /bin/false mysql shell> cd /usr/local shell> tar zxvf /home/linux/Desktop/mysql-VERSION-OS.tar.gz shell> ln -s mysql-5.5.51-linux2.6-x86_64 mysql shell> cd mysql shell> chown -R mysql . shell> chgrp -R mysql . shell> scripts/mysql_install_db --user=mysql shell> chown -R root . shell> chown -R mysql data shell> bin/mysqld_safe --user=mysql After this command I get this error:
erro160928 4:36:11 [ERROR] /usr/local/mysql/bin/mysqld: Can't create/write to file '/var/run/mysqld/mysqld.pid' (Errcode: 2) 160928 4:36:11 [ERROR] Can't start server: can't create PID file: No such file or directory
Do we need to create pid and socket manually?