以前のリビジョンの文書です


さくらのVPS Apache & PHP 環境構築メモ

OS: FreeBSD 8.1

あらかじめ packages でインストールしておくものはさくらのVPS FreeBSD環境構築メモを参照。

  • mysql-server
  • mysql-client
  • phpMyAdmin

mysql

/etc/rc.conf

mysql_enable="YES"

command

% mysqladmin -u root password
New password:
Confirm new password:

% mysql -u root -p
mysql> select * from mysql.user;
mysql> select * from mysql.tables_priv;
mysql> drop user ''@hostname;
mysql> drop user ''@localhost;

mysql> create database dbname default character set utf8 collate utf8_unicode_ci;

mysql> grant all on dbname.* to root;

mysql> show variables like "char%";

mysql> bye

my.cnf

[mysqld]
  :
default-character-set=utf8
skip-character-set-client-handshake

ZenCart

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 1

というエラーが出るとき、 zc_install ディレクトリの *.sql ファイル中の 「TYPE=MyISAM」から「ENGINE=MyISAM」に置き換える。

文書の先頭へ
sakura-vps-db.1337910142.txt.gz · 最終更新: 2012/05/25 10:42 by sugakoubou