A Database Error Occurred
Contents |
Tracker Submitting Code Job Board Docs Editors Developers Tutorials API Training & Certification Download Try it now... Download concrete5 Installation Hosting Solutions Hosting Support Development Enterprise Extensions Education Business Government Partners Contact us Themes Add-ons Community Forums StackOverflow Search Members
A Database Error Occurred Error Number 1146
Bug Tracker Submitting Code Job Board Docs Editors Developers Tutorials API Training & a database error occurred error number 1054 Certification Cart Join our Community Sign In Forums Search Advanced Search Mark Discussion as Helpful Reply Installation Help Unable to a database error occurred while processing this request connect to database. A database error occurred while processing this request. Permalink January 26, 2014 at 8:54 PM I have seen this problem way too many times on the forum - now I
A Database Error Occurred Repository Has Not Been Created
am seeing it for myself. Site works fine on MAMP local sever. The site was upgraded to a newer version on my local server. Things I have done - exported and imported the database ( phpmyadmin ) Created database user I have set all the permissions for folders to 777 ( folders mentioned in the moving a site ) Cleared all the cache files - then copied
A Database Error Occurred While Getting License Information
to Archive ( zip ) all files Uploaded Archive and decompressed. Changed config/site.php to show new changes (top 4 defines) define('DB_SERVER', 'localhost'); define('DB_USERNAME', 'new-username'); define('DB_PASSWORD', 'new-password'); define('DB_DATABASE', 'new-database-name'); define('PASSWORD_SALT', 'gcGvGPaIHCvoU1JYtVBSaubEHblahblahblah'); Site doesn't work ( soccerelectronics.com) Unable to connect to database I think that migration from local to server should be way simpler - Is there an Add-on to collect everything from local and then do clean install on server? This is very frustrating. I have done this before by doing Concrete install first then going through and re-adding all packages and importing ( drop tables ) and I have had it work before but that is a lot of work where copying the exact files should work. Very frustrating. INTcommunicationsDate Joined: 04/23/13Karma: 2,575Answers:8Bio:View Profile View Replies: Threaded Chronological (Earliest First) Chronological (Recent First) View Best Answer mesuva replied on Jan 27, 2014 at 12:12 am Permalink Best Answer Reply You've created the database user, but have you given that user access to your database? In cPanel for example, there is a section in the database page 'Add User To Database'. You need to make sure that the user has permission to actually access the new database. The steps are
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings a database error occurred codeigniter and policies of this site About Us Learn more about Stack Overflow
Unable To Connect To Your Database Server Using The Provided Settings
the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags exchange an error occurred on database Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only https://www.concrete5.org/community/forums/installation/unable-to-connect-to-database.-a-database-error-occurred-while-p takes a minute: Sign up codeigniter A Database Error Occurred up vote 3 down vote favorite Can someone help me? I am a beginner and trying to make wearing CodeIgniter authentication, but when I try to make an error like this A Database Error Occurred Error Number: 1046 No database selected SELECT * FROM (`user`) WHERE `user_username` = 'amanda' AND http://stackoverflow.com/questions/22877227/codeigniter-a-database-error-occurred user_passwordMD5("12345") = Filename: C:\xampp\htdocs\codeigniter\system\database\DB_driver.php Line Number: 330 thanx codeigniter share|improve this question edited Apr 5 '14 at 6:13 Subodh Ghulaxe 8,72065380 asked Apr 5 '14 at 6:05 Revoir Hz 1816 can you please make sure you have setup database configuration in config/database.php file –user3470953 Apr 5 '14 at 6:08 Please refer to the Codeignitor documentation before jumping to the coding. –dikesh Apr 5 '14 at 6:13 did any of the answer work !!! –saurabh kamble Apr 5 '14 at 7:04 thank you for giving advice, I do not have any information about documentnya and practice that the less I understand –Revoir Hz Apr 5 '14 at 7:14 add a comment| 3 Answers 3 active oldest votes up vote 1 down vote accepted Check the database.php file in application/config/ $db['default']['hostname'] = 'localhost'; $db['default']['username'] = 'root'; $db['default']['password'] = 'mypassword'; $db['default']['database'] = 'my_database'; // here is the database selection share|improve this answer answered Apr 5 '14 at 6:12 ReNiSh A R 1,57021232 I have tried it and then appear again error like this
0 Average 1 2 3 4 5 Thread Modes Database error occurred. capt.enos Junior Member Posts: 3 Threads: 1 Joined: Jun 2015 Reputation: 0 #1 06-23-2015, 08:56 PM http://forum.codeigniter.com/post-319840.html (This post was last modified: 06-24-2015, 02:10 AM by capt.enos.) Hi, I'm https://community.invoiceplane.com/t/a-database-error-occurred/787 newbie for this framework, i has tried many ways to fix this problem but still database not connected/error. so, i need help. screen looks like this : A Database Error Occurred SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO) Filename: third_party/MX/Base.php Line Number: 55 what should i error occurred do for this error? please help me. Thanks. Find Reply capt.enos Junior Member Posts: 3 Threads: 1 Joined: Jun 2015 Reputation: 0 #2 06-24-2015, 02:09 AM Anyone can help? i still can't connect codeigniter to mysql, A Database Error Occurred SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO) Filename: third_party/MX/Base.php Line Number: 55 Please help me. thanks. Find Reply CroNiX a database error Senior Member Posts: 431 Threads: 0 Joined: Jan 2015 Reputation: 26 #3 06-24-2015, 10:00 AM Are the db credentials properly set in /application/config/database.php? Does that mysql user have proper permissions set up? According to the error message, you are trying to use the "root" mysql user with NO password. Find Reply capt.enos Junior Member Posts: 3 Threads: 1 Joined: Jun 2015 Reputation: 0 #4 06-24-2015, 07:11 PM (06-24-2015, 10:00 AM)CroNiX Wrote: Are the db credentials properly set in /application/config/database.php? Does that mysql user have proper permissions set up? According to the error message, you are trying to use the "root" mysql user with NO password. Finaly i can access database, but i got new error, A Database Error Occurred Error Number: 1146 Table 'cpp_db.UI_USERS' doesn't exist select SALT as RESULT from UI_USERS where USERNAME='admin' Filename: helpers/system_helper.php Line Number: 153 I open file helpers/system_helper.php and i change all UI_USERS to lowercase because in my database all table is in lowercase, after i changed it nothing happen still same error. by the way thanks for your answer. i appreciate it. Find Reply mwhitney Posting
Unable to connect to your database server using the provided settings.Filename: I:\phpStudy\WWW\InvoicePlane\system\database\DB_driver.phpLine Number: 125 How can I fix that? Kovah 2015-04-28 13:02:06 UTC #2 Did you exactly followed the installation guide? https://wiki.invoiceplane.com/en/1.0/getting-started/installation Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled