I am using laravel but, i do not want any database connectivity. i do not need any database to use for my site. if i delete config/database.php still error.
Also if i delete DB config from .env still issue.
Is there any way to use laravel without any database configuration.
[1045] Access denied for user 'forge'#'localhost'
and
database[] not configured
Thanks
You can use SQlite database driver, create an empty database in storage directory.
No need to write anything there too.
The only requirement will be that your php will need sqlite extension enabled, but that will be on by default, probably.
dont delete any file just blank credentials blank and laravel app work without any connection
blank credentials in .env file
Related
Like suppose i have a domain named "abcd.com"
and in that domain i have a phpmyadmin database installed.i have a main.php file too
how to initiate the connect from main.php file to a particular api function(which will update a value in the phpmyadmin database)?
There's a bit of confusion.
You should understand that PhpMyAdmin is a "webapp" as much as the one that your writing main.php.
So, if you have the information about any PhpMyAdmin account, that one is the same as you DB's user.
You can use this information inside you main.php file to connect to the DB and "do stuff", as long as the main.php is in the same server that PhpMyAdmin.
There is an implemented/installed wordpress project on a server (which is working). Now I made a zip file from all its directories and files and copy/pasted it to another server (and extracted it). Also I created an export of the database and imported it to the new server.
Also I modified wp-config.php file and set the new db-name, user-name, password accordingly. But sadly when I open the new server it throws:
Error establishing a database connection
Any idea what's the problem and how can I fix it?!
Use https://en-gb.wordpress.org/plugins/duplicator/ or https://en-gb.wordpress.org/plugins/all-in-one-wp-migration/ to get as close to a clone as possible
Your credentials are incorrect. As said in comments you need to try to connect manually to your database to check if they are correct. I had the same problem recently.
So I have database-name, user-name, password. Anything else do I need?
You don't need anything else if they are correct.
If your url will not be the same you have to export your database. Open the .sql file with notepad. Find and replace http://oldurl.comto http://newurl.com
I have installed laravel 5 on my mac using composer.
I am struggling with database configuration.
after i remove the ENV() in database.php setting, to without ENV(), it works.
The access is denied error is solved, however, why i cannot open localhost/phpmyadmin?
I read the few source about locating the .env file, however seems like i cannot locate it.
How do i properly setup database and how do i open localhost/phpmyadmin as now it says that access denied.
Thanks in advance
Unable to select the wordpress database.
I am using WAMP server in windows 7 OS
while configuring the wordpress i am getting this kind of error
Thanks
It looks like you are not creating the database.You need to create database schema first manually. First Create database in Phpmyadmin. And give that name in your configuration file.
Make sure the database name you have given in wp-config.php is correct. Check if the database user name and password is correct. Also check if the user has the privilege to access the database.
Some times the problem appears when you have everything right there!!
So if you make sure you have created a database, giving the database name correctly while installing and you still are seeing the error, then:
1>> go to the root of your server
2>> Edit the file wp-config.php, set everything there manually, its that easy ;)
That should work for you!!
I am a cakephp newbie and I tried to setup my connection to mysql. I had it worked before but after I changed my mysql database name, it won't connect anymore even thought I changed the database name in database.php inside the config folder. Do I have to run the cakephp console again??
Your tmp directory is writable.
The FileEngine is being used for caching. To change the config edit APP/config/core.php
Your database configuration file is present.
Cake is NOT able to connect to the databa
Above is the message shown.
Any ideas what I have to do? Thanks a lot!
Make sure that the new database allows the user in the database.php file to have access to the new database. Look at the MySQL GRANT syntax.