MySQL Error (0) Help
(mysqli): SELECT COUNT(DISTINCT `ipmd5`) FROM `kusabaposts` WHERE `boardid` = 1 AND `IS_DELETED` = 0
Error (0):
And a lot of other things that start with (mysqli) and end with Error(0). I've tried replacing the mysqli with mysql, but the same error occurred. Any help on this?
I've made sure that my MySQL database and user were correct and all privileges were granted to the user on the database, btw.
9 Replies
@Zowayixx:
lot of other things that start with (mysqli) and end with Error(0)
Is MySQL running?
@Zowayixx:
re-uploaded all the SQL files and directories.
If you upload just the SQL files, then you need to be sure your using the same version of MySQL. Ideally you should be exporting/importing your databases.
–
Travis
@Zowayixx:
Yes, MySQL is indeed running. I believe I am using the same version of MySQL I was whenever they were working, as I don't really touch the MySQL side of the server, update-wise. Also, I made a database and uploaded the SQL file via the "source *.sql" command, as the sql file itself was too large to be imported manually.
If you imported the .sql file you dumped from the other database, then it shouldn't make a difference on the version of SQL you are running. Hopefully someone else can give you some pointers.
–
Travis
I have a feeling Error(0) is specific to whatever app you have. I don't think it's being returned from the actual mysqli call. Error catching using mysqli either returns (depending which function you use) an error code or a string containing the error message. Now obviously it's not returning the results of mysqli->error (which should return a message). It's also not the mysqli->errno function, since that returns 0 if there is NO error.
I suspect the app is doing some other check/validation and that section of the code outputs the last sql query with an uninformative error code.