Missing expression. (near "ON" at position 25)
MYSQL
SET FOREIGN_KEY_CHECKS = ON;
Missing expression. (near "ON" at position 25)
MYSQL
SET FOREIGN_KEY_CHECKS = ON;
Add this line in settings.php
$config['system.image']['toolkit'] = 'gd';
uncomment this line(for showing error log )
$config['system.logging']['error_level'] = 'verbose';
Customize below code
$databases['default']['default'] = array (
'database' => 'rni_web', //write data base that is blank, for new installation
'username' => 'root',
'password' => '',
'prefix' => '',
'host' => 'localhost',
'port' => '3307',
'namespace' => 'Drupal\\mysql\\Driver\\Database\\mysql',
'driver' => 'mysql',
'autoload' => 'core/modules/mysql/src/Driver/Database/mysql/',
);
1) write data base that is blank, for new installation ( 'database' => 'rni_web', )
2) after next , you will get errors of gd than see below link
https://kapooryash.blogspot.com/2026/04/error-while-starting-my-sql-or-appache.html
3) if drupal new install than use it with that database, if website already modified or given by some other person than change database name with backup database(replace ( 'database' => 'rni_web', ) with other database)
https://webolute.com/blog/programming/this-may-be-due-to-a-blocked-port-missing-dependencies/
and for My sql, use below steps
Open the XAMPP Control Panel and click Config next to MySQL, then select my.ini.
Find the lines port=3306 (usually in two places) and change them to port=3307.
next step
If going to localhost:8000 get error than change the config.inc.php, enter the password in string $cfg['Servers'][$i]['password'] = 'root';
and change
$cfg['Servers'][$i]['controluser'] = 'pma'; to $cfg['Servers'][$i]['controluser'] = 'root';
$cfg['Servers'][$i]['controlpass'] = '';$cfg['Servers'][$i]['controluser'] = 'root';
This error comes when you write below code:-
using (SqlCommand cmd=new SqlCommand("SELECT TOP 1 [FileID] FROM [UploadFiles] order by Fileid desc"))
and not passed con as second parameter in SqlCommand. Use below code
using (SqlCommand cmd=new SqlCommand("SELECT TOP 1 [FileID] FROM [UploadFiles] order by Fileid desc", con))
also you have to add below line
cmd.CommandType = System.Data.CommandType.Text;
>First open services.msc from wondow + r (Window Services)
> Then right click on sql server (SQL express)
>go to Properties.
Then go to Log On tab and select Local System account.
Click on Ok button and start the service.
https://superuser.com/questions/1218375/turn-windows-features-on-or-off-opens-server-manager
https://www.revelation.com/WebHelp/OpenInsight%2010%20O4W%202.0%20Quick%20Start%20Guide/O4W_008.jpg
https://www.webhosting.uk.com/kb/iis-http-error-404-3-not-found-add-a-mime-map/
https://stackoverflow.com/questions/6425442/http-error-404-3-not-found-in-iis-7-5
https://kb.blackbaud.com/knowledgebase/Article/52195
https://stackoverflow.com/questions/7083533/http-er
Use Firefox instead of Chrome