Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 4:14 pm (All times are UTC )

 


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 121 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
Posted: Mon Jun 08, 2009 10:44 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Fri Sep 07, 2007 7:28 pm
Posts: 371
Location: Arizona
kovomo,

Locate the configuration.php file and make sure you updated your database password here.

_________________
Official GoDaddy.com Support Representative
www.godaddy.com/community/community.aspx?tab=support www.GoDaddy.com/Community - Support Info


Top
  E-mail  
 
Posted: Tue Jun 09, 2009 1:14 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Tue Aug 12, 2008 9:04 am
Posts: 253
Location: Sydney, Australia
Keep the post in here because someone else might be able to help while i'm at doctor.
So, you got a joomla up on your server and you've built a site locally and now want to upload the local site into the new joomla?

Do you have FTP application and new servers setup for your site on your ftp client?

:eek:



roryam wrote:
http://www.rorymoulton.com

I get the db error with /administrator
I get a 404 error with /index
With /index.html, I get the test page that my host put up when we tried to work through the problem yesterday. (they weren't much help)

Yes, I have an htaccess file on my server.

What the hell have I done? I didn't fill out the confiugration.php correctly, right?

Thanks for the help!

_________________
It's great to be here......in fact,.....it's great to be anywhere!


Top
  E-mail  
 
Posted: Tue Jun 09, 2009 1:25 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Apr 21, 2009 6:37 am
Posts: 9
Yes. The ftp server still has my original uploads from when I tried to move everything from my local server. Should I kill all those files and start over?


Top
  E-mail  
 
Posted: Tue Jun 09, 2009 1:34 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Tue Aug 12, 2008 9:04 am
Posts: 253
Location: Sydney, Australia
roryam wrote:
Yes. The ftp server still has my original uploads from when I tried to move everything from my local server. Should I kill all those files and start over?


Well, basically when you overwrite a folder or a file all your doing is replacing old files with new ones. So If you know what files need to be replaced in the new joomla! then it would follow that all you'd have to do is overwrite the files and folders on the new joomla you just set up with the files from your local joomla that you want to publish.

_________________
It's great to be here......in fact,.....it's great to be anywhere!


Top
  E-mail  
 
Posted: Tue Jun 09, 2009 1:38 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Apr 21, 2009 6:37 am
Posts: 9
Okay, dumb question number, I've lost count.

Are these my customizations, like my template, extensions, content, etc.? I ftp these files?


Top
  E-mail  
 
Posted: Tue Jun 09, 2009 1:49 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Tue Aug 12, 2008 9:04 am
Posts: 253
Location: Sydney, Australia
Yes.
if you've successfully installed/created a joomla website on your local (your) machine. Now you're uploading it to a remote server. On that remote server there is already a sucessfull joomla installation which has been FTPd from you to the server by you as you mentioned previously. But it's not the joomla you wanted to publish. It was an experiment to check your hosting service could support a joomla. We've established that it does and it's all hunky dory. Now we want to put your local joomla (the website you built on your local computer) onto the remote server.

How you do this depends on what you have installed on your local joomla. You would need to overwrite the remote folders with the local ones.

However, I think your problems is going to be resolved by practicing uploading sites. From my point of view, I build the sites live online everytime to avoid these issues. Upload a joomla and edit and modify it live.

_________________
It's great to be here......in fact,.....it's great to be anywhere!


Top
  E-mail  
 
Posted: Tue Jun 09, 2009 2:04 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Apr 21, 2009 6:37 am
Posts: 9
Dude, you're awesome! It looks like this should work. Thanks for clarifying everything.

And yes, from now on I will be doing everything on my live site. I didn't realize I'd have such problems making this move. Everything I read made it seem so easy. Obviously, at my meager skill level, it's not so easy.

Got some files to overwrite...


Top
  E-mail  
 
Posted: Tue Jun 09, 2009 2:09 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Tue Aug 12, 2008 9:04 am
Posts: 253
Location: Sydney, Australia
roryam wrote:
Okay, dumb question number, I've lost count.

Are these my customizations, like my template, extensions, content, etc.? I ftp these files?



Also, have you established your domain http://www.mysite.com on your host?
Can you navigate to a host management control panel where you can set these up?
ie: http://www.mysite.com/cpanel?
keefrichards wrote:
Yes.
if you've successfully installed/created a joomla website on your local (your) machine. Now you're uploading it to a remote server. On that remote server there is already a sucessfull joomla installation which has been FTPd from you to the server by you as you mentioned previously. But it's not the joomla you wanted to publish. It was an experiment to check your hosting service could support a joomla. We've established that it does and it's all hunky dory. Now we want to put your local joomla (the website you built on your local computer) onto the remote server.

How you do this depends on what you have installed on your local joomla. You would need to overwrite the remote folders with the local ones.

However, I think your problems is going to be resolved by practicing uploading sites. From my point of view, I build the sites live online everytime to avoid these issues. Upload a joomla and edit and modify it live.
roryam wrote:
Dude, you're awesome! It looks like this should work. Thanks for clarifying everything.

And yes, from now on I will be doing everything on my live site. I didn't realize I'd have such problems making this move. Everything I read made it seem so easy. Obviously, at my meager skill level, it's not so easy.

Got some files to overwrite...


Don't get too excited, you need to sort out a few other things by the look of it. I don't think you've set up your account on your host correctly coz I can't ping it.

Have you established your domain http://www.mysite.com on your host?
Can you navigate to a host management control panel where you can set these up?
ie: http://www.myhostingservice.com (i use webhostmanager or whm)

You need to be able to do these things to enable your joomla on remote server, especially if you want to do the following:
    >>build your site live
    >>secure/protect the site from attacks while you develop it.
    >>to create mysql dbs
    >>access your phpMyAdmin control panel.

If you can't do any of the above your hosting company may provide some help depending on the type of account you have with them.

I have to go now.

I hope I've helped.

Good luck

_________________
It's great to be here......in fact,.....it's great to be anywhere!


Top
  E-mail  
 
Posted: Tue Jun 09, 2009 2:29 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Apr 24, 2008 10:12 pm
Posts: 9
I found the solution to my installation problem in "Beginning Joomla! From Novice to Professional" by Dan Rahmel (a very good reference book on Joomla!) page 113, "At the time of this writing, on Yahoo hosted servers, you need to use mysql instead of localhost for the MySQL address." I called Yahoo for assistance 2 times and they never mentioned the above solution.


Top
  E-mail  
 
Posted: Tue Jun 09, 2009 2:54 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Apr 21, 2009 6:37 am
Posts: 9
Aargh...It looks like joomla didn't successfully install on my remote server like I thought. In my control panel, it's still showing as "installing" with some errors.

My host definitely supports Joomla, so I'll have to figure this out with them and return to overwriting.

Thanks for all your help. I'll let you know how it goes with my host...


Top
  E-mail  
 
Posted: Fri Jun 12, 2009 5:13 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Thu Jun 11, 2009 2:35 am
Posts: 2
"Database Error: Unable to connect to the database:Could not connect to MySQL" while installing on my desktop
That's what shows when i hit the ...localhost/joomla. I have tried everything suggestion there-is and still not successful. Could someone please assist me here?
To make it easy, this what appears for database * cdcol (1)
* demo
* information_schema (28)
* mysql (23)
* phpmyadmin (8)
* test
* webauth (1)



Please, someone help. Thanks.


Top
  E-mail  
 
Posted: Fri Jun 12, 2009 5:18 am 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sat Dec 27, 2008 6:16 am
Posts: 315
Location: LA
If you properly assign a user with full priviledge to the database then enter it during the installation process, that error should never exist.

_________________
Joomla Templates & VirtueMart Themes

http://www.vjtemplates.com


Top
  E-mail  
 
Posted: Fri Jun 12, 2009 6:14 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Thu Jun 11, 2009 2:35 am
Posts: 2
Thanks Vj. I was hoping your reply would help me but seriously it doesn't. Am I suppose to delete the above databases then create one? A little detail would help people as i'm not very very proficient with this.


Top
  E-mail  
 
Posted: Sun Jun 28, 2009 3:35 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sun Jun 28, 2009 3:24 am
Posts: 1
sirs,

at last i can upload into live server at Yahoo Webhosting,

the problem is only a litle thing.

when at connection to mysql,

then :
database type : mysql
hostname : MySql
(this is that we do not think off, ussually the name is localhost or website address)
username : mysqlusername
(don't put @website or @localhost, after mysqlusername)
password : mysqlpassword
database : virtuemart

the database, should be created first, before. using phpMyAdmin panel

cheers,
budilaks


Top
  E-mail  
 
Posted: Mon Jun 29, 2009 10:50 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Mar 19, 2009 7:28 pm
Posts: 8
Hi for the record I got the message below Today
Database Error: Unable to connect to the database:Could not connect to MySQL

I am using the wamp localhost/joomla/ administrator on my computer..... I tried loading the wamp again which did not help or solve the problem



But I did do a restore on my computer,,,,, and bingo :laugh: it solved the problem

PS: Also I did download "quicktime" earlier in the day whether that had any bearing on this prob I will never Know


Top
  E-mail  
 
Posted: Wed Jul 22, 2009 12:06 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Jun 29, 2009 10:31 pm
Posts: 8
I'm having the same problem. Where do I find configuration.php?


Top
  E-mail  
 
Posted: Wed Jul 22, 2009 1:36 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Thu Aug 18, 2005 8:55 pm
Posts: 12901
Location: Nijmegen, The Netherlands
jkooky wrote:
I'm having the same problem. Where do I find configuration.php?

It's in the root of your Joomla site which is in the public directory on your server.
The public directory is probably something like /public_html/ or /htdocs/

_________________
Kind Regards,
Peter Martin, Global Moderator - Community & Leadership Team
www.db8.nl - Joomla specialist, Nijmegen, Nederland
Joomla 1.5 Quick Reference Guide: www.db8.nl/en/downloads/misc-downloads/ ... glish.html


Top
   
 
Posted: Fri Jul 24, 2009 11:59 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Jul 23, 2009 3:55 pm
Posts: 14
i'm really sorry for directly posting the link, the full solution is this..........

Post successful installation


This problem is normally a permissions issue... or after ur Mysql webhost server refuses connection due to max_user_connections to the database


Debugging:

Open the config file i.e (config.php) of your root joomla site and check if u have given the correcr user name n password n also the database name.......
its always better to give the proper IP of your host.

If every thing is correct then

The problem is due to max_user_connection....... resulting from unclosed connections from one of the elements

Solution:

create a new database user to the same database

then use this new user in the Joomla Config file..

that will solve the problem.

[removed self promotion]

_________________
www.vtunews.in i'll keep posting solutions in the joomla forum HERE


Last edited by Geoff on Tue Aug 04, 2009 5:38 pm, edited 1 time in total.
removed self-promotion


Top
  E-mail  
 
Posted: Fri Jul 24, 2009 12:09 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Jul 23, 2009 3:55 pm
Posts: 14
jkooky wrote:
I'm having the same problem. Where do I find configuration.php?


it's in your Joomla Folder

lets say u type http://www.~~~~~~~~~/joomla to open ur site on IE/Firefox

then open it from your ftp browser as ~~~~~~~~~~~~~/joomla here (~) being the ip of your server and the following folders

n in that folder 'Joomla' Voila it will be there.

same thing for local host except using ftp..............

_________________
www.vtunews.in i'll keep posting solutions in the joomla forum HERE


Top
  E-mail  
 
Posted: Wed Sep 02, 2009 1:55 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Apr 06, 2009 2:12 am
Posts: 15
Brad, you are possibly someone that may know the answer to my woes!

I had taken a copy of my live site to further develop locally and add a shopping cart. All was fine until I was having problems installing a template theme for Virtuemart. I noticed the tmp log path was reading the string from the host server (home/mak50008/public_html/tmp) so I changed it in the Global config to (applications/MAMP/htdocs/beth new ecommerce/tmp) and the screen went blank. I now cannot connect to http://localhost:8888/MAMP/ and any of the other sub folders. Have I done something terminal? Or can it be retrieved?

Help much appreciated :) Cheers


Top
  E-mail  
 
Posted: Sat Sep 05, 2009 1:06 am 
User avatar
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sun Aug 31, 2008 6:49 am
Posts: 4
I had the same issue, after looking around i realize i was using a password with double quote "
So for example my password was (123!"#).... i reset the user thru Cpanel and changed to a new password without the "

This is because in the config file you have this:

var $password = 'xxxxxxxx';

If you use single quote ' or double quote ", the php server configuration doesnt understand your real password and gets confused where that var ends.

So change your password or db name o db user to something that doesnt have quotes! :D

Cheers!


Top
  E-mail  
 
Posted: Thu Sep 10, 2009 6:45 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Sep 10, 2009 6:33 am
Posts: 10
hello friends,
i am new new to joomla, but learnd more things within few months.
i have successfully upload and see my site correctly. but second day i edit one page, normally i sued filezilla for upload. upter uploading the one file, i have seen erroro " cannot connect to database mysql " then i checked the all information in joomla site configaration file. but all the information are ok. actually what is the worng thing i have done. no idea. i am so worried about this.
please help me any one who has met such a problem and solved.
i hosted my site as free member of [url banned] site.
please please help me any one of the joomla members


Top
  E-mail  
 
Posted: Tue Sep 15, 2009 12:44 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Tue Sep 15, 2009 12:00 am
Posts: 1
after migration on live site, modify:
var $dbtype = 'mysql';
var $host = 'localhost';
var $user = 'db_your_use_name';
var $db = 'db_name';
var $dbprefix = 'jos_';

/* Server Settings */
var $live_site = ''; /*should be empty*/

/* Feed Settings */
var $log_path = 'path\\to\\your\\joomla\\logs';
var $tmp_path = 'path\\to\\your\\joomla\\tmp';


Top
  E-mail  
 
Posted: Wed Oct 07, 2009 1:54 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Oct 07, 2009 1:42 am
Posts: 1
Thanks for this thread it has got me over the line, I too had the database error message.

This might save someone an hour or two, I had created a new db user as per the advice from posts here but forgot to adjust the privileges so instead it took another 5 tries before I figured it out.

Got there in the end.


Top
  E-mail  
 
Posted: Wed Oct 07, 2009 9:16 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Fri Oct 24, 2008 5:35 am
Posts: 374
Location: Adodis Technology Pvt Ltd, Bangalore
Hi,

If you get this error "Database Error: Unable to connect to the database: Could not connect to MySQL".. If the database connection is wrong, this error will display. You will edit the configuration.php file and make sure the database details.

_________________
http://www.outsource-website-development.com Outsource Website Development, Outsource Web Development
http://www.outsource-website-design.com Outsource Website Design ,Outsource Web Designer, Outsource Web Design


Top
  E-mail  
 
Posted: Sun Nov 01, 2009 3:25 pm 
User avatar
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Jul 29, 2009 11:50 am
Posts: 3
mastix wrote:
I had the same error "Unable to connect to the database:Could not connect to MySQL" after installing a joomla template on another domain in the same hosting company (Hostgator). I created another MySql database and I think HERE COMES THE MISTAKE I GAVE THE SAME USERNAME to this database. After that I could not access any of my two sites.
So here is what I did:

1- Delete the new created database and site (the main one was the important one so I din't want to mess things up
2- I deleted the username (in the case it had been corrupted) created a new one with all the privileges on- by the way-(I named it the same as before so I had not to touch the PhpmyAdmin)
3- Voila!!! everything was back to normal

So big lesson is: DO NOT GIVE THE SAME USERNAME TO DIFFERENT DATABASES....you risk the dreaded "Unable to connect to the database: Could not connect to MySQL" message

Hope my experience is of any help

best

Cristian


Boy!!! am I glad to bump into to your suggestion... I had 3 sites with the same user name and all the three returned with the error...

I resolved this issue by going in to "MySQL Databses" from my cPanel and added a "new user" to the database, and deleted the one which had identical user.. I did this to all the three sites..Voila!!! it worked... Well I also had to add the new "user" info in the configuration.php file.

Thanks to your suggestion "DO NOT GIVE THE SAME USERNAME TO DIFFERENT DATABASES"

A valuable lesson learnt...


Top
  E-mail  
 
Posted: Sun Nov 01, 2009 9:14 pm 
User avatar
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sun Aug 31, 2008 6:49 am
Posts: 4
duman06 wrote:
Where do I find configuration.php?


Under the main folder of Joomla, that means that if you extract any version of Joomla, you will find configuration.php in the main extracted folder.


Top
  E-mail  
 
Posted: Sat Nov 07, 2009 9:08 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sat Nov 07, 2009 8:06 pm
Posts: 2
I recently installed Joomla 1.5.15, and everything was working fine. I went into the Global Configuration utility and made a change to the site name, and promptly got the following error:

"Database Error: Unable to connect to the database:Could not connect to MySQL"

Other installations of Joomla on the same server are working correctly, as was this one before I made that change. I uninstalled, cleaned the temps files, and then re-installed. Same thing. This is INFURIATING.

I manually removed the changes I made to the configuration.php, but no luck. I'm stumped. When using the Global Configuration utility in the Admin Site, what other changes are written?

Any ideas?


Top
  E-mail  
 
Posted: Sun Nov 08, 2009 4:50 am 
User avatar
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sun Aug 31, 2008 6:49 am
Posts: 4
bullrich_66 wrote:
I recently installed Joomla 1.5.15, and everything was working fine. I went into the Global Configuration utility and made a change to the site name, and promptly got the following error:

"Database Error: Unable to connect to the database:Could not connect to MySQL"

Other installations of Joomla on the same server are working correctly, as was this one before I made that change. I uninstalled, cleaned the temps files, and then re-installed. Same thing. This is INFURIATING.

I manually removed the changes I made to the configuration.php, but no luck. I'm stumped. When using the Global Configuration utility in the Admin Site, what other changes are written?

Any ideas?


For what you say i can tell that you don't have issues with your web server or database configuration, because other websites area working fine. In the other side you might be getting the same Error if you are using the same (database_name/username) you were having problems with.

You could try to make a new install with a "never used before" database, don't forget to clean the cache of your browser.


Top
  E-mail  
 
Posted: Thu Nov 12, 2009 11:11 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Tue Aug 12, 2008 9:04 am
Posts: 253
Location: Sydney, Australia
salgaito wrote:
bullrich_66 wrote:
I recently installed Joomla 1.5.15, and everything was working fine. I went into the Global Configuration utility and made a change to the site name, and promptly got the following error:

"Database Error: Unable to connect to the database:Could not connect to MySQL"

Other installations of Joomla on the same server are working correctly, as was this one before I made that change. I uninstalled, cleaned the temps files, and then re-installed. Same thing. This is INFURIATING.

I manually removed the changes I made to the configuration.php, but no luck. I'm stumped. When using the Global Configuration utility in the Admin Site, what other changes are written?

Any ideas?


For what you say i can tell that you don't have issues with your web server or database configuration, because other websites area working fine. In the other side you might be getting the same Error if you are using the same (database_name/username) you were having problems with.

You could try to make a new install with a "never used before" database, don't forget to clean the cache of your browser.


It's the old configuration.php file problem. It doesn't have the same password as the MySQL db. Need to open the configuration file, locate the password and change it to the correct one.

_________________
It's great to be here......in fact,.....it's great to be anywhere!


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 121 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

Quick reply

 



Who is online

Users browsing this forum: carsten888, donmarvin, fdguy, jbruku, mr_brian89, zammitoj and 62 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group