cancel
Showing results for 
Search instead for 
Did you mean: 

error message : bash: syntax error near unexpected token `)'

SOLVED

error message : bash: syntax error near unexpected token `)'

Dir Sir,

 

While we install , we have the erroe message "bash: syntax error near unexpected token `)'  " . Please let us know how to solve it. 

 

[root@sever01 magento23]# bin/magento setup:install --base-url=http://localhost/magento23 --db-host=localhost --db-name=magento --db-user=root --db-password=sq8JeE9U_D)tP --admin-firstname=admin --admin-lastname=admin --admin-email=admin@admin.com --admin-user=admin --admin-password=admin123 --language=en_US --currency=USD --
timezone=America/Chicago --use-rewrites=1

2 ACCEPTED SOLUTIONS

Accepted Solutions

Re: error message : bash: syntax error near unexpected token `)'

Hi @alex_chang1 

 

")" In the password string returning error.

 

Try password in the single quote once as below.

 

[root@sever01 magento23]# bin/magento setup:install --base-url=http://localhost/magento23 --db-host=localhost --db-name=magento --db-user=root --db-password='sq8JeE9U_D)tP' --admin-firstname=admin --admin-lastname=admin --admin-email=admin@admin.com --admin-user=admin --admin-password=admin123 --language=en_US --currency=USD --
timezone=America/Chicago --use-rewrites=1

 

I hope it will help you!

View solution in original post

Re: error message : bash: syntax error near unexpected token `)'

Hi @alex_chang1 

 

Glad to help you.

 

In the above commands you are using magento database name. Use the real database name. 

 

[root@sever01 magento23]# bin/magento setup:install --base-url=http://localhost/magento23 --db-host=localhost --db-name=magento23 --db-user=root --db-password='sq8JeE9U_D)tP' --admin-firstname=admin --admin-lastname=admin --admin-email=admin@admin.com --admin-user=admin --admin-password=admin123 --language=en_US --currency=USD --
timezone=America/Chicago --use-rewrites=1

 

Try the above command.

 

I hope it will work you.

View solution in original post

3 REPLIES 3

Re: error message : bash: syntax error near unexpected token `)'

Hi @alex_chang1 

 

")" In the password string returning error.

 

Try password in the single quote once as below.

 

[root@sever01 magento23]# bin/magento setup:install --base-url=http://localhost/magento23 --db-host=localhost --db-name=magento --db-user=root --db-password='sq8JeE9U_D)tP' --admin-firstname=admin --admin-lastname=admin --admin-email=admin@admin.com --admin-user=admin --admin-password=admin123 --language=en_US --currency=USD --
timezone=America/Chicago --use-rewrites=1

 

I hope it will help you!

Re: error message : bash: syntax error near unexpected token `)'

thanks and it is solved ,but another problem appears below. Actually, we have created the mysql database 'magento23'  .  Please help it.

 

Database 'magento23' does not exist or specified database server user does not have privileges to access this database.

In InstallCommand.php line 264:

Parameter validation failed

Re: error message : bash: syntax error near unexpected token `)'

Hi @alex_chang1 

 

Glad to help you.

 

In the above commands you are using magento database name. Use the real database name. 

 

[root@sever01 magento23]# bin/magento setup:install --base-url=http://localhost/magento23 --db-host=localhost --db-name=magento23 --db-user=root --db-password='sq8JeE9U_D)tP' --admin-firstname=admin --admin-lastname=admin --admin-email=admin@admin.com --admin-user=admin --admin-password=admin123 --language=en_US --currency=USD --
timezone=America/Chicago --use-rewrites=1

 

Try the above command.

 

I hope it will work you.