PDA

View Full Version : MySQL Error


EverythingWeb
11-27-2005, 09:15 AM
Hello,

First off, I did try submitting this to the helpdesk, except I kept getting an error :confused: as below (please feel to edit/remove when fixed)

Parse error: parse error, unexpected $ in /home/interwo1/interworx.com/interworx.com/html/support/helpdesk/cache/8d159c5e46c8aa16e37c2b73f296e7de.php on line 157

However, I am having a problem when trying to import a sql file into mysqladmin:

MySQL said: https://www.ew-falcon.net:2443/mysql/themes/original/img/b_help.png (http://www.mysql.com/doc/en/Error-returns.html)
#3 - Error writing file './gpcindco_catalogue/CubeCart_Downloads.frm' (Errcode: 122)

Any ideas?

juangake
11-28-2005, 05:09 AM
It seems that the table file could not be written. That should be /var/lib/mysql/DATABASENAME/TABLENAME.frm

Perhaps you need to create the database first, and USE that database to be in, specially if your SQL file has only "create table" chunks in it...

mysql> create database gpcindco_catalogue;
mysql> use gpcindco_catalogue;
mysql> source filename.sql;

Hope it helps.

Regards,

Juan

IWorx-Paul
11-28-2005, 10:49 AM
Error code 122 means : "System error: 122 = Disk quota exceeded"

That looks to me like that account is over it's disk quota.

Paul

IWorx-Socheat
11-28-2005, 11:09 AM
Here's a useful tip. When you get a MySQL error code like that, you can often run:

perror <errorcode> to get a more useful description of the error. For example:

[root@test3 root]# perror 122
Error code 122: Disk quota exceeded

IWorx-Chris
11-29-2005, 01:41 AM
Parse error: parse error, unexpected $ in /home/interwo1/interworx.com/interworx.com/html/support/helpdesk/cache/8d159c5e46c8aa16e37c2b73f296e7de.php on line 157


We were doing some upgrading the other night, it should be working now.

Chris