collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Tip for setting up database  (Read 5356 times)

0 Members and 2 Guests are viewing this topic.

Offline Jasper2002

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Tip for setting up database
« on: March 16, 2005, 10:31:39 am »
When I tried to setup the database using phpMyAdmin on a webserver by importing the SQL script it came up with a number of errors. This is due to the html commands used to show certain characters. The html codes typically end in ';' which terminates a line in phpMyAdmin.

If you setup the database on your own machine do it from the command prompt. In my case, on a windows machine I copied the items.sql file to the root and then setup the database in MySQL at the command prompt.

Code: [Select]

MySQL>Create database bebot;
MySQL>use bebot;


To get my bot working I downloaded the latest versions of Apache, MySQL and PHP. Having installed and configured them, about an hour, I then dropped BeBot into a folder in htdocs in the apache folder.
Copied the PHP essential files off this site and added 2 lines to the php.ini file.

Code: [Select]
extension=php_bz2.dll
extension=php_sockets.dll


Once done I then had a problem:

Quote
"Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in xxx\MySQL.php on line 36"


Go to the MySQL website and search for MySQL Administrator, download it and run it.
Then follow these instructions.
Go to start up variables, then to security and put a check in use old passwords.

Then go back to the MySQL command prompt and type

Code: [Select]

MySQL>\. c:/items     #note there is no trailing ';' for this


to import the database. This should take a minute at most and once done the database is ready.

After this go back to the MySQL Administrator to grant all permissions on all databases for your user. Then restarted the MySQL server.

In command prompt

Code: [Select]
net stop mysql
net start mysql


Then in the command prompt go to the folder for BeBot and type

Code: [Select]
php start.php

After that it worked absolutely fine :D and will be running our raids from now on.

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 323
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal