Forum archive
How to create MySQL DB in TKLPatch
I'm just finalising my SimpleInvoices TKLPatch. It works, just need to test the bundled patch on a clean ISO. That is where my problem has occurred.
Based on Core with a patch that installs MySQL it will happily alow root to create DB without requiring a password during patching. But when I try the same thing on TKL LAMP it errors:
mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Anyone got any ideas?
Easy fixed, just started MySQL before running any MySQL commands
Obvioulsy if you install MySQL it will be running.