Tag Info

Hot answers tagged

5

MySQL is a database and you're expected to interact with the database through tools (MySQL Workbench, the mysql command line tool, etc.) rather than directly interact with the files on disk. In order to do a backup, for instance, you would do an SQL dump of your database rather than copying the database files themselves. To find the files, run the SQL ...


2

Your command line should be: mysql --host=localhost -p From the mysql man page: · --host=host_name, -h host_name Connect to the MySQL server on the given host.


1

LAMP would be overkill. That is intended for hosting a website. If you only need a database you can install MySQL. But that might be overkill too. There is also SQLite (it is a "light" database and I would opt for that). MySQL: sudo apt-get install mysql-server SQLite: sudo apt-get sqlite SQLite is a software library that implements a ...


1

In my case the problem was the /etc/mysql/my.cnf file permission. I changed it for cenvenience but it caused erros like kernel: [604528.290448] type=1400 audit(1424350956.727:193): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/mysqld" pid=15008 comm="apparmor_parser" The my.cnf permission was 766 and I changed it to ...


1

The simplest way to install all three is to run the lamp-server task: sudo apt-get install lamp-server^ The caret at the end means that this is running a task, not installing a package. There is no lamp-server package, so if you leave off the caret, apt-get will return the error message, Unable to locate package lamp-server. The task will install ...


1

The command you are looking for is probably sudo update-rc.d mysql defaults /etc/init.d/mysql Default script: #!/bin/sh -e # upstart-job # # Symlink target for initscripts that have been converted to Upstart. set -e INITSCRIPT="$(basename "$0")" JOB="${INITSCRIPT%.sh}" if [ "$JOB" = "upstart-job" ]; then if [ -z "$1" ]; then echo ...



Only top voted, non community-wiki answers of a minimum length are eligible