Quantcast
Channel: MySQL Forums - Install & Repo
Viewing all articles
Browse latest Browse all 7239

problems with runnig .sql script in shell (no replies)

$
0
0
hello,

i have problem with creating mysql database for astercc during installation. i am installing manually.

1) i created db with:
mysqladmin -u root create astercc

2) tried to start astercc.sql script for creating tables with:
mysql -u root astercc </var/www/html/astercc/sql/astercc.sql

but i got this error:
ERROR 1 (HY000) at line 21: Can't create/write to file '/var/lib/mysql/astercc/servers.MYI' (Errcode: 13)

i thinkthat poblem is with rights for file /var/lib/mysql/astercc. but i am doing everything as root user and file astercc has rwx rights for owner, group nad others. owner is root. owner of /var/lib/mysql file is mysql which i dont want to change, but rights are set as rwx for owner, group and others.

please help

Viewing all articles
Browse latest Browse all 7239

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>