I am trying to create my test database within Symfony 4.4 project using:
php bin/console doctrine:database:create --env=test
But keep getting an error:
An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user 'myproject_user'#'%' to database 'myproject_test'
In my .env.test url is defined like:
DATABASE_URL=mysql://myproject_user:password_1#database:3306/myproject_test
What is causing the problem? I can assume it's # character, but this way is my database url defined in .env file also. I can not figure out what could be the problem?
Your DATABASE_URL is correct.
The problem come from your user which exist, but has no acces right to create table in database.
You can see some existing post about this problem:
SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user 'ion'#'localhost' to database 'a901ce392dad4b90b1c6e175b07196a9'
"SQLSTATE[42000] [1044] Access denied for user 'team'#'localhost' to database 'my database''
ERROR 1044 (42000): Access denied for user ''#'localhost' to database 'db'
Related
i want just to host a website previously work , into another web server
i have change parameters.yml file with new host parameteres of connection
i have upload all my files , and i have import my databases
when i try to enter (myhost/web ) i have this errors : Access denied for user 'root'#'localhost' (using password: NO)
error.log
[07-Dec-2022 15:30:13 Africa/Algiers] PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[28000] [1045] Access denied for user 'root'#'localhost' (using password: NO)' in /home2/icares/logicom.dz/ncomparer/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43
Stack trace:
#0 /home2/icares/logicom.dz/ncomparer/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(43): PDO->__construct('mysql:host=127....', 'root', NULL, Array)
#1 /home2/icares/logicom.dz/ncomparer/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php(45): Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=127....', 'root', NULL, Array)
#2 /home2/icares/logicom.dz/ncomparer/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(360): Doctrine\DBAL\Driver\PDOMySql\Driver->connect(Array, 'root', NULL, Array)
#3 /home2/icares/logicom.dz/ncomparer/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): Doctrine\DBAL\Connection->connect()
#4 /home2/icares/logicom.dz/ncomparer/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): in /home2/icares/logicom.dz/ncomparer/app/cache/prod/classes.php on line 3390
I have change the parameters of connection with new server , but the error is that username root password no and server is localhost , what i must do ?
The error.log says that your Symfony trying to access database (probably MySQL) via the user 'root' from a local host. But your database, MySQL is not set to allow access as 'root'.
MySQL and most databases do not allow to access as 'root' as default as security reason, especially without password (what your erro said).
So, may be you need to check:
What is your database_user and database_password set in Symfony project (parameters.yml?)
Check MySQL from cli that what kind of previleges are set for your database.
The way to access mysql without password may find here:
Allow linux root user mysql root access without password
Or some hints may be here:
How to create a root user with no password in mysql
I was trying to install Magento 2 but I receive the following error:
SQLSTATE[42000]: Syntax error or access violation: 1227 Access denied;
you need (at least one of) the SHOW DATABASES privilege(s) for this
operation, query was: SHOW DATABASES
Since I am useing a shared hosting (My host provider is Aruba) I've tried to give myself the SUPER PRIVILEGES but of course it didn't work.
Is there a way I can force Magento to "avoid" running the SHOW DATABASES query to solve the problem?
When I use the following command to create a database in OrientDB 2.0.10,
CREATE DATABASE plocal:../databases/pincode admin admin plocal
I get the following error.
Creating database [plocal:../databases/pincode] using the storage type [plocal]...
Error: com.orientechnologies.orient.core.exception.ODatabaseException: Cannot create database 'pincode'
Error: com.orientechnologies.orient.core.command.OCommandExecutorNotFoundException:Cannot find a command executor for the command request: sql.select count(*) from ORole where name.type() not in ["STRING"] and name is not null
I get the same error if i try to create the database this way,
CREATE DATABASE remote:localhost/pincode root password plocal
I have connected to the remote server in both cases.
Similar error of command executor not found, pops up even when I try to connect to the database.
Can someone help tell me where I'm going wrong?
We are working on a task to resurrect a ClearCase server.
During the restoration process, we are stuck with following error as shown in server log.
vobrpc_server.exe(<pid>): Error: See albd or vob error logs on host <host name>
Here is the background.
We were given 2 servers [Registry & view server]
Registry server was in island and view server was in under a domain, which is now currently unavailable.
We created a new group called "ClearCase" and put both these servers under same LAN and created new users under ClearCase group.
While the license & albd service started successfully, it is still unable to create / restore views.
We were able to see VOB information via ClearCase explorer, but while trying to create a new view & while accessing the folder, we are getting error like "Encountered an improper argument". Google around this error, we ended up in seeing above error in ClearCase server logs.
The actual errors are:
view server log error:
view_server.exe(pid): Warning: Unable to open vob
'<host_name>:E:\ClearCase_Storage_e\vobs\AdmitOneIKE.vbs':
unknown error in VOB.
view_server.exe(7876):
Error: Unexpected error in VOB
"<host_name>:E:\ClearCase_Storage_e\vobs\AdmitOneIKE.vbs"
op vob_ob_get_vob_owner_sid:error detected by ClearCase subsystem
See vobrpc_server_log on host <host_name>...
vobrpc_server.exe(1188):
Error: Problem starting vob_server for vob
<host_name>:E:\ClearCase_Storage_e\vobs\esg.vbs. server
Albd(5364):
Error: Server vob_server.exe (pid=7224) on
"E:\ClearCase_Storage_e\vobs\AdmitOneIKE.vbs"
died on startup; marking it as "down".
vob_server.exe(pid):
Error: No group "clearcase" found.
vob_server.exe(7224):
Error: Unknown style protections.
cccredmgr(6388):
Error: Trouble contacting registry on host "<host_name>":
timed out trying to communicate with ClearCase remote
There seems to be an issue with the owner or the groups associated with the Vob.
I would recommend trying using fix_prot for fixing the vob.
And/or cleartool protectvob to change/reset ownership and group membership.
I want to view my database tables in xampp using "phpmyadmin panel".But iam getting this error
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
09/06/13 16:53:15
Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.2.9
WHAT TO DO?