I've downloaded the wamp server and it's online. I'm trying to install Joomla.
At page 4 I'm told Unable to connect to the database
An error has occurred:The database details provided are incorrect and/or empty.
Can anyone help me in fixing this error?
This problem has been fixed by Ocaso Protal, finaly this page ocurs
what should I put here ?Site Name? nd finaly why should i use joomla any specific properties of this product ?
Even if you use the default settings for mysql (user: root, password empty) you should put the username root in the Username field in the form that's showed in your first screenshot.
You must check these things before
Setup a blank database from the Cpanel/Mysql Admin
Fix the username/password and user permissions on this database
Run Joomla... and give it the above credentials + localhost
Make sure you have 777 or adequate permissions otherwise some errors may occur#
If im not mistaken the default account for wamp/xamp myqsl is
user: "root"
password: ""
//Password is null - do not write nothing inside
Related
I already asked a question about this 2 days ago, here are the links
Got "password authentication failed for user" but in pgAdmin 3 its working
But I still didn't get an answer to solve the problem.
So I tried to create a new laravel project, then edit the .env file, check if php artisan migrate can run.
After I run php artisan migrate it's running, so it means that my credentials to PostgreSQL database are correct right? if not it will tell you password authentication failed for user "postgres", but I don't get any error at all, so I go to the next step. Now after I make sure everything is OK i run php artisan make:auth, it's a success without error at all, so I go to the web browser then run the site, I clicked the register / login button, fill the fields, submit then, it's happened again the nightmare
I got this message from the website
SQLSTATE[08006] [7] FATAL: password authentication failed for user "postgres" FATAL: password authentication failed for user "postgres" (SQL: select count(*) as aggregate from "users" where "email" = test#test.com)
Even though php artisan migrate run really well, so I've no idea why it's happening. Is there somebody that ever run into this problem before? or maybe why it's happening?
I already search all keywords that possible to fix this problem, but I can't found the answer, it's really stressed me out.
for the info I'm using:
PostgreSQL 9.6.8
Laravel 5.6
Ubuntu 17.10
Edited: Here is my pg_hba.conf
Check your database.php file in config directory, and check the pgsql array. If accessing DB credential values from .env not worked there, test it by directly putting credentials there. hope it will help. Artisan commands work by accessing the credentials from .env files directly,not from database.php that's why migration worked.
I had a similar problem, my generated password contained the character: '#'. This made it a comment line, ignoring the rest of the password. I just changed my password.
What I'm trying to achieve is allow connection to MySQL server without defining password in PDO connection, instead of it I would like to define it in MySQL configuration.
I already created file /etc/mysql/conf.d/nopass.cnf with content:
[client]
host = localhost
user = someuser
password = somepass
socket = /var/run/mysqld/mysqld.sock
When connecting from shell it works as expected:
$ mysql -u someuser
mysql>
However, I'm not able to connect via PHP:
new PDO('mysql:host=127.0.0.1:3306;charset=utf8;dbname=somedb', 'someuser');
new PDO('mysql:host=127.0.0.1:3306;charset=utf8;dbname=somedb', 'someuser', null);
new PDO('mysql:host=127.0.0.1:3306;charset=utf8;dbname=somedb', 'someuser', );
In each case I receive error
PDOException: SQLSTATE[HY000] [1045] Access denied for user 'someuser'#'localhost' (using password: NO)
It works if I set correct password
new PDO('mysql:host=127.0.0.1:3306;charset=utf8;dbname=somedb', 'someuser', 'somepassword');
Is it possible to make this work?
As far as my testing has gone, PDO requires that something is provided in the password field so no matter what config setup you're using it will try to use its own syntax. If there is no password, then the password field should be set to an empty string i.e. '' and it submits that empty string as your password. The short answer is, AFAIK it's not possible to do what you're trying.
If your primary concern is having a password revealed due to someone finding a way to snoop around your PHP files, having it placed in a client config is a good method to try to circumvent that but there are native PHP methods that can also hide the sensitive information from potential security breaches stemming from leaked PHP file contents.
I answered a similar question not too long ago that talks about the three main recommendations I'd make regarding PHP security for SQL passwords here: Set up PDO connection without password which mostly includes moving the php script outside your webdata directory as well as protecting php files from direct access even if accessed by using redirects to hide their existence and having code that returns a 404 error if the files themselves are directly accessed. Also I'd suggest making PHP-exclusive accounts that have very limited access scopes so in case someone does find a way to inject sql, they won't be able to do or see much. For examples of what I'm talking about, feel free to follow the link to read up.
I'm trying to bake my models, controllers and views using 'cake bake'.I entered default when it promp for database configuration. Then the command prompt displays an error message saying
Database connection "My sql" is missing or could not be created.
I have edit the path to environment variables as follow;
;C:\wamp\bin\php\php5.4.3;C:\wamp\www\fit or fat\lib\Cake\Console;
I have no idea what about what I should do.
Open the CakePHP site in your browser and go to Documentation / Book / Getting Started/ CakePHP Database Configuration. You'll find an explanation on what file you need to edit to provide your database credentials.
I have this strange issue that I'm banging my heads off. It works on dev machine but when I moved it to prod machine, I got this error:
FastCGI-stderr: PHP Fatal error: Uncaught exception 'CouchbaseLibcouchbaseException' with message 'Failed to create libcouchbase instance: Administrator account must not be used to access the data in the bucket' in /var/www/myapps/Bootstrap.php:149
This is line 149:
$couchbase = new Couchbase($db['host'],$db['username'],$db['password'], $db['dbname']);
Did I miss something? I turn off all my firewall and selinux to make sure it's not their issue. Still the same..
I'm using:
CentOS 6.4 64Bit
Couchbase 2.01
whatever the php-ext-couchbase define in this repo:
http://packages.couchbase.com/rpm/couchbase-centos62-x86_64.repo
I can login with no issue via browser with the same username and password.
The question is, is this really an account issue? If it is then how or where do I create another user? Can't seem to find it anywhere in the documentation.
If not, any suggestion on how I should debug this? Please help?
Is your bucket password protected? If not, just pass a blank user id and password to the connect. To find out if it has a password go to the bucket configuration area (Data Buckets, Click the down arrow, click the "edit" button). The password is set under "access control"
on the edit screen.
I just used artisan migrate to create some table, but I get an error of Type PDO:
[PDOException]
SQLSTATE[HY000] [1045] Access denied for user 'root'#'localhost' (using password: NO)
A php/mysql testscript could connect to the database just fine, but it was another virtualhost and it did not use PDO.
In Laravel4 edited app/config/local/database.php to set the password and database name.
edit in start.php
UPDATE
I hardcoded the password in the PDO connection array and now terminal says there is no database named "database". Clearly it is looking somewhere else for the config, but I have no other config file.
(Due to following a tutorial about making a "local" directory it was not working for me)As it stands, I have downloaded the stable version and everything is working great.
I am going to delete this post, to keep the forum clean.
Make sure you have set up your database connection correctly in app/config/database
Laravel Database Docs
Make sure you are setting up a 'local' environment in start.php
Otherwise Laravel will look for DB config in app/config/database.php
Kindly Check Your app/config/database.php file in local host.
1.)Make Sure local Host Data Base name is Correct
2.)Make sure local Host Data Base username is correct.
3.)Make sure local Host Data Base password is correct.