Jump to content

Recommended Posts

Posted

I'm trying to upload a database for my website (I know my database isn't corrupted because I can upload it on other sites), whenever I do so the upload cuts off and I get a

 

"#2002 - can't connect to local mysql server through socket '/var/lib/mysql/mysql.sock' (2) the server is not responding (or the local server's socket is not correctly configured)."

 

aswell as it says the table its trying to upload doesn't exist, even though it does?

 

Error

SQL query:

 

-- --------------------------------------------------------

--

-- Table structure for table `reputation`

--

CREATE TABLE IF NOT EXISTS `reputation` (

 

`UserID` TEXT NOT NULL ,

`GivenIP` VARCHAR( 100 ) NOT NULL ,

`GivenID` TEXT NOT NULL

) ENGINE = INNODB DEFAULT CHARSET = latin1;

 

MySQL said: Documentation

 

#1146 - Table 'altera_main.reputation' doesn't exist

 

Does anybody know how to fix this?

Posted

Try it in a fresh database. You likely created a phantom table when you first tried and failed...

 

Also, remove the 'if not exists' from the create table statement.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...