mysql root password- Solved
-
- Posts: 25
- Joined: Sun Jun 28, 2009 8:49 pm
mysql root password- Solved
I have been having problems with the root password of mysql, causing a 500 internal server error. I have tried to change the user/password back to root/hda, but when i save it, it keeps a copy of the old one with the same file name, just with a ~ at the end. I think that file is still overriding the updated one, still causing the error. When i tried to go and delete it, i wasn;t there, but when i go into terminal as root and do gedit, when i hit open, there it is listed as a file. And i can't delete it. Any suggestions. Feel free to ask for more details, as it was kind of hard to explain my situation clearly.
Last edited by weekendsrule33 on Wed Jul 29, 2009 1:58 pm, edited 1 time in total.
Re: mysql root password
when you type this command:
you should see this exactly:
and your mysql server should also have as the root password hda.
sorry, having a different root password is not supported at the moment. (i know, it's silly)
the files with ~ at the end are editor backups and do not matter.
Code: Select all
grep -A4 production: /var/hda/platform/html/config/database.yml
Code: Select all
bash$ grep -A4 production: /var/hda/platform/html/config/database.yml
production:
adapter: mysql
database: demo_development
username: root
password: hda
bash$
sorry, having a different root password is not supported at the moment. (i know, it's silly)
the files with ~ at the end are editor backups and do not matter.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1
-
- Posts: 25
- Joined: Sun Jun 28, 2009 8:49 pm
Re: mysql root password
ok so i entered that into the terminal and got back the right response, but i am still getting the error screen. Is there a way to uninstall and reinstall amahi without reinstalling fedora?
Re: mysql root password
did you change the password in the server?
if so, it needs to be back to hda.
if not, try to restart the http daemon:
if so, it needs to be back to hda.
if not, try to restart the http daemon:
Code: Select all
service httpd restart
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1
-
- Posts: 25
- Joined: Sun Jun 28, 2009 8:49 pm
Re: mysql root password
how would i check/change the root mysql server password? I don't think i ever changed it, mainly becasue i don't think i know how, but how would i change it?
Re: mysql root password
with phpmyadmin?
(also through mysqladmin)
does this work?:
i assume you restarted the httpd server.
(also through mysqladmin)
does this work?:
Code: Select all
echo "show tables" | mysql -u root -p hda demo_development
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1
-
- Posts: 25
- Joined: Sun Jun 28, 2009 8:49 pm
Re: mysql root password
I get a message access denied for user root@localhost using password yes. And yes, i did restart the httpd server.
Re: mysql root password
in that case, it looks like the root password in mysql is not hdaI get a message access denied for user root@localhost using password yes.
you can try to change it back to hda with mysqladmin like this:
Code: Select all
mysqladmin -u root -p password 'hda'
sorry you are experiencing so much trouble. it's hard to warn about this particular issue cause 99% of people do not care about their mysql settings or root password in general and we need a root-like user for amahi to be able to create databases, etc. which we will do that in the next release.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1
Re: mysql root password
weekendsrule33,
One thing I notice in your syntax is that there is a space after the -u, but not after the -p. It's been my experience that they have to be the same or you will get that message.
My guess is it should be mysql -u root -p hda. I have had this same issue in the past and that was my problem.
Hope this helps.
One thing I notice in your syntax is that there is a space after the -u, but not after the -p. It's been my experience that they have to be the same or you will get that message.
My guess is it should be mysql -u root -p hda. I have had this same issue in the past and that was my problem.
Hope this helps.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
-
- Posts: 25
- Joined: Sun Jun 28, 2009 8:49 pm
Re: mysql root password
i changed the mysql password (after guessing the old one about fifteen times ), and it is working now. Thanks for all your help cpg, and thanks for your input too bigfoot65. Can't wait to see what the future holds for amahi!
Who is online
Users browsing this forum: No registered users and 29 guests