mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 2 - No such file or directory)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-5.6 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I get this in a fresh install in Ubuntu 14.10 for Mysql server 5.6:
$ sudo mysqld start
2014-05-14 13:54:03 0 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
2014-05-14 13:54:03 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_
2014-05-14 13:54:03 25912 [Warning] Can't create test file /var/lib/
2014-05-14 13:54:03 25912 [Warning] Can't create test file /var/lib/
mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 2 - No such file or directory)
2014-05-14 13:54:03 25912 [ERROR] Aborting
2014-05-14 13:54:03 25912 [Note] Binlog end
2014-05-14 13:54:03 25912 [Note] mysqld: Shutdown complete
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: mysql-server-
ProcVersionSign
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.2-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Wed May 14 13:55:45 2014
InstallationDate: Installed on 2014-05-08 (6 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
SourcePackage: mysql-5.6
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in mysql-5.6 (Ubuntu): | |
assignee: | nobody → Robie Basak (racb) |
Add my.cnf:
explicit_ defaults_ for_timestamp
Change key_buffer by key_buffer_size
Create folder:
sudo mkdir -p /var/lib/mysql/