Topic: Admin panel problem

every time i load up my site i get unable to connect to database

is everything correct here ?

// DB
$conf["db_host"]="findmp3.host22.com";
$conf["db_user"]="a5200432";
$conf["db_pass"]="********";
$conf["db_base"]="upload/images";

// Admin
$conf["admin_login"]="wilkie"; //login
$conf["admin_pass"]="********"; //password

wasnt sure what to put in db_base

Thumbs up

Re: Admin panel problem

well the problem is your db_base, it is not the folder, but the name of the database you created, it would be something similar to

a5200432_chevereto

~ Sup?!

Thumbs up

Re: Admin panel problem

thanks i'll try it now

Thumbs up

Re: Admin panel problem

still cannot get it to work sad

Thumbs up

Re: Admin panel problem

Well it was just a guess, you should have created a database, and you given it a name... you copy this name and past it...


From 000webhost.com (your web host)

I get access denied errors when trying to connect to MySQL

    If you cannot connect to MySQL server, there could be some causes:

    - Incorrect MySQL hostname.
    Never use 'localhost' as your MySQL hostname! You can find your MySQL hostname by logging on to members area, entering control panel and clicking on MySQL icon.

    - Incorrect MySQL username / password or database name.
    You can find / setup MySQL username and database by clicking on MySQL icon from control panel. And you can change MySQL password by clicking on phpMyAdmin icon.

    - Database failed to setup.
    In a very rare cases MySQL database can fail to setup. To confirm this, please try to enter phpMyAdmin for any database. If you see database there, that means it setup was successful. And if you get access denied error by trying to enter phpMyAdmin, please delete the database and setup the same MySQL database again.

    Please note that always you must give about 1 minute for any changes to apply on server.

    If you still unable to connect to MySQL you check if it is server or your script problem in this way: if you can enter phpMyAdmin and see you database there, that means everything is working fine on our side. It's a problem with your PHP script.

Last edited by Danny.Domb (2011-05-25 16:14:06)

~ Sup?!

Thumbs up

Re: Admin panel problem

sorry i dont understand create a database where ?

Thumbs up

Re: Admin panel problem

wilkiee wrote:

sorry i dont understand create a database where ?

Well, their should be an small icon somewhere on your control panel named mysql or database or something similar.

Click on it, you should see an option create a database, but I can't say for sure, every webhost is different.

if their is an option, you simply follow the steps and everything will be created.

~ Sup?!

Thumbs up

Re: Admin panel problem

I found you a nice little youtube video

Follow it, and everything should be fine

http://www.youtube.com/watch?v=R78y0ubYUDg

~ Sup?!

Thumbs up

Re: Admin panel problem

thanks so much ! , think i have it working just puting site on the server now

Thumbs up

Re: Admin panel problem

Danny.Domb wrote:
wilkiee wrote:

sorry i dont understand create a database where ?

Well, their should be an small icon somewhere on your control panel named mysql or database or something similar.

Click on it, you should see an option create a database, but I can't say for sure, every webhost is different.

if their is an option, you simply follow the steps and everything will be created.

didnt see the vid but i was using 000webhost and found mysql and did my self thanks for finding vid for me tho

Thumbs up

Re: Admin panel problem

Still not working sad definatly done it right

$conf["db_host"]="mysql8.000webhost.com";
$conf["db_user"]="a5200432_wilkie";
$conf["db_pass"]="*******";
$conf["db_base"]="a5200432_images";

// Admin
$conf["admin_login"]="wilkie"; //login
$conf["admin_pass"]="********"; //password

// Folders //
/* If you change this, you also must change the folders name. */
define('DIR_UP','up/');
define('DIR_IM','images/filename.jpg'); // Change this to have something like /X/filename.jpg - where "X/" is the folder name. 
define('DIR_WORKING',DIR_UP.'working/');
define('DIR_TEMP',DIR_UP.'temp/');
define('DIR_TH','thumbs/');

Thumbs up

Re: Admin panel problem

what is the error?

You can not connect or?

~ Sup?!

Thumbs up

Re: Admin panel problem

wilkiee wrote:

Still not working sad definatly done it right

$conf["db_host"]="mysql8.000webhost.com";
$conf["db_user"]="a5200432_wilkie";
$conf["db_pass"]="*******";
$conf["db_base"]="a5200432_images";

// Admin
$conf["admin_login"]="wilkie"; //login
$conf["admin_pass"]="********"; //password

// Folders //
/* If you change this, you also must change the folders name. */
define('DIR_UP','up/');

define('DIR_IM','images/filename.jpg'); // Change this to have something like /X/filename.jpg - where "X/" is the folder name. 
define('DIR_WORKING',DIR_UP.'working/');
define('DIR_TEMP',DIR_UP.'temp/');
define('DIR_TH','thumbs/');

what is the error?

You can not connect or?

create another file... name it whatever.php

write the following in :


<?php
mysql_connect('mysql8.000webhost.com', 'a5200432_wilkie', 'PASSWORD') or die('1 - '.mysql_error());
mysql_select_db('a5200432_images') or die('2 - '.mysql_error());
?>

and give me the error after.

~ Sup?!

Thumbs up

Re: Admin panel problem

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'a5200432_wilkie'@'10.50.0.79' (using password: YES) in /home/a5200432/public_html/whatever.php on line 2

Thumbs up

Re: Admin panel problem

Well, either your username, password or mysql host is wrong... try to find the rights information.,

~ Sup?!

Thumbs up