• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Windows MySQL database error

Magiciano

New Member
Joined
Aug 26, 2007
Messages
44
Reaction score
2
Been trying to get past this for some time now but I can't figure it out.
I'm getting an error, probably my mistake...
dewxoz.png


This is my config.lua file:
ztgavl.png


As you can see I already deleted the comment lines.

This is how my otserv folder looks like:
122etdf.png


Any idea how to fix this?
 
Thanks a lot, rep +!
I named my database file to "tfs.s3db", created a user and database in phpmyadmin with the name "tfs.s3db". This solved the problem.
A new one popped up:
2h356js.png
 
now you have to search in the schema folder
the mysql.sql file and import into your current database

Alright, sorry for all the trouble - doing that gives this error in phpmyadmin:
Code:
SQL query:

CREATE TABLE `house_auctions` (
`house_id` INT UNSIGNED NOT NULL ,
`world_id` TINYINT( 2 ) UNSIGNED NOT NULL DEFAULT 0,
`player_id` INT NOT NULL ,
`bid` INT UNSIGNED NOT NULL DEFAULT 0,
`limit` INT UNSIGNED NOT NULL DEFAULT 0,
`endtime` BIGINT UNSIGNED NOT NULL DEFAULT 0,
UNIQUE (
`house_id` ,
`world_id`
),
FOREIGN KEY ( `house_id` , `world_id` ) REFERENCES `houses` ( `id` , `world_id` ) ON DELETE CASCADE ,
FOREIGN KEY ( `player_id` ) REFERENCES `players` ( `id` ) ON DELETE CASCADE
) ENGINE = InnoDB;

MySQL said: Documentation
#1050 - Table 'house_auctions' already exists
 
Magiciano you need to copy mysql.sql from schema folder, and go to your webserver like and look the folder : MySQL > Bin ".

Paste mysql.sql in Bin folder.

Now open a Dos Windows, go to Run menu and write "CMD".

Then, write this : "cd PATHTOYOURWEBSERVER "
Example: (C:/Program Files/VertrigoServ/Mysql/Bin).

Then, you need to write: " mysql -u USER DATABASE -p < mysql.sql " without quotes., and change the USER for the user like "ROOT"and DATABASE the name or database
Then appears a line with Password: insert your password of root or your user, press Enter, and the dabase will be imported successfully.



OBS: Dont import it directly in PhPMyAdmin cause it dont import the Triggers.
 
Back
Top