I want to enable LDAP module on my XAMPP Windows 10, here's the few solutions that I've tried :
Copy dll files to System and System32 and uncomment extension=php_ldap.dll in php.ini, both development and production.
Copy libsasl.dll to xampp/apache/bin
None of these working, when I opened phpinfo() there is no ldap info showing, which means the ldap hasn't been able to installed. I also added PHP in Windows Path with no success, but either my approach is wrong or that wasn't a solution. Any help appreciated.
Make sure the path\to\xampp\php directory has the following files
libeay32.dll
libsasl.dll
ssleay32.dll
Usually, you can find these files in path\to\xampp\sendmail - this library also uses them. But if not, try to search for them inside the xampp directory.
Uncomment or add the ldap extension in the php.ini (path\to\xampp\php\php.ini) file
extension=ldap
Restart the server
Make sure the path\to\xampp\php directory is set in the system environment variable PATH. To know how to do it, see this post.
I just ran into the same issue and the link you provided How to enable LDAP extension in XAMPP environment ended up being the solution for me.
I copied libeay32.dll and ssleay32.dll from C:/Ampps/php to C:/Windows/System32. I made sure neither of these files were in C:/Windows/System. From there I enabled extension=php_ldap.dll in the php.ini file. Ampps has a list you can enable php.ini dll's and if I remember right so does XAMPP. The last step is to just restart Apache and you should be good to go.
I'm using Windows 10 with Ampps instead of XAMPP but have to think they are pretty close.
I am not able to start the MySQL server on my Windows system. When I tried in services.msc to run, I got this error:
Starting it through the XAMPP control panel does not work either:
Can you help me to solve this?
Open windows services (Start->run ->Services.MSC)
Find service with name "Mysql Server" and check path, it should be something like that:
"C:\Program Files (x86)\Parallels\Plesk\Databases\MySQL51\bin\mysqld.exe" "--defaults-file=C:\Program Files (x86)\Parallels\Plesk\Databases\MySQL\Data\my.ini" MySQL
Make sure that Mysql folder and executable file mentioned above exist by this path.
OR
Sometimes the file name of mysqld-nt.exe renamed to mysqld-nt.exe~ so rename it back to its original name and this may solve the problem.
Go to the path: C:Programs Files\MariaDB 10.2\data..
Lookout for my.ini file. Open the file and check the path for "datadir".
If that does not match to your installed directory then update it.
Your problem will be solved for sure.
I faced the same problem and solved it.
Just modify the registry editor value.
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/MySQL/ImagePath
Xampp error after moving xampp folder:
Apache is running fine:
as given below image i'm sucess to run apache but unable to run mysql if in case i moved and run xampp both apache and mysql but its shows error which is fresh and it show the error like "Table doesn't exist in engine" #1932 as given up image. please solve the issue anyone help pls
I have faced same issue and sorted using below step.
Go to MySQL config file (my file at C:\xampp\mysql\bin\my.ini)
Check for the line innodb_data_file_path = ibdata1:10M:autoextend
Next check the ibdata1 file exist under C:/xampp/mysql/data/
If file does not exist copy the ibdata1 file from location C:\xampp\mysql\backup\ibdata1
hope it helps to someone.
Copy the ib_logfileXX and ibdata
file from old mysql/data folder to the new mysql data folder and it will fix the issue
If you have copied & Pasted files from an old backup folder to new then its simple.
Just copy the old ibdata1 into your new one. You can find it from \xampp\mysql\data
And restart your mysql.
Don't copy ibdata1 file
This occurred to me when I take all files from the backups folder. There is a file you should not copy with other folders and files, called ibdata1.
stop mysql
copy xampp\mysql\data\ib* from old server to new server
start mysql
I have faced same issue but copying the xampp\mysql\data\ibdata1 was not solved my problem, because I install new version of xampp, if you upgrading your xampp first make backup from all htdocs and mysql folder, in my case I just backup the all xampp to the new folder like old-xampp then install new xampp and then you need do the following steps before starting your new xampp servers:
Backup the phpmyadmin folder and ibdata1 from your new installation form this location xampp\mysql\data.
Then Go to your old xampp folder old-xampp\mysql\data and copy the ibdata1 file and phpmyadmin from old location.
Then open your new xampp folder xampp\mysql\data and past them there.
Start the xampp servers.
You could:
Rename data folder to data-old
Create new folder and set name to data
Copy backup folder in data folder
Copy ibdata1 in data-old to data folder
Restart MySQL and Apache
After solving the problems, get output power from the database
I had previously moved my mysql directory and forgot to change ALL references to the old location in \mysql\bin\my.ini.
change these three lines:
datadir = "/programs/xampp/mysql/data"
innodb_data_home_dir = "/programs/xampp/mysql/data"
innodb_log_group_home_dir = "/programs/xampp/mysql/data"
Change "/programs/xampp/mysql/data" to new location
this one was commented but I changed it anyways
#innodb_log_arch_dir = "/programs/xampp/mysql/data"
ok step one you can copy from your old xampp xampp\mysql\data\ibdata1 and step two paste to your xampp new xampp\mysql\data\ibdata1 ,
and than open your xampp controller and stop mysql and start again.
i tried this and is work for me
100% working solution
Stop MySQL and Apache and quit Xampp.
Make a backup of the "data" folder.
C:\xampp\mysql\data
Copy all the files from this folder
C:\xampp\mysql\backup
4. Paste and replace to
C:\xampp\mysql\data
Instructions for Ubuntu users:
Copy a database (e.g. from the external disk backup).
sudo cp -r /media/some_user/mysql/some_database/ /opt/lampp/var/mysql/
NOTE: from this moment on, the database already appears in PHPMyAdmin, but if you click on it, the tables still do not appear
Change the owner to mysql (because when copying the owner it was changed to root)
sudo chown -R mysql:mysql some_database/
NOTE: from this moment the name of the tables appears but you can't see their structure or data - it shows the error "#1932 - Table 'some_database.some_table' doesn't exist in engine"
Copy the ibdata1 file and also change the owner.
sudo mv ibdata1 ibdata1_old
sudo cp /media/some_user/mysql/ibdata1 /opt/lampp/var/mysql/
sudo chown -R mysql:mysql ibdata1
Restart XAMPP
sudo /opt/lampp/lampp restart
Copy the content of backups folder into data folder. This worked for me.
After this you have to reconfigure innodb files of your existent databases
I had the same issue. I had a backup of my C:\xampp\mysql\data folder. But integrating it with the newly installed xampp had issues. So I located the C:\xampp\mysql\bin\my.ini file and directed innodb_data_home_dir = "C:/xampp/mysql/data" to my backed-up data folder and it worked flawlessly.
None of the above solution works for me. After pasting your old mysql/data directory to your new xampp, Check if ibdata1 has all the permissions required by the current user otherwise try to grant the permissions. Then "Empty Session Data" in your phpmyadmin, solved my problem.
If you have tried all the above answers and yet failed, first try to fix your db by running this command,
mysqlcheck --repair my_db_name -u root -p
And then if issue fixed,
If not fixed and you have a backup of the table with you and not able to import it to the PHPMyAdmin, do the following.
1. Go to xampp\mysql\data\database_folder
2. Delete the files (with extension .frm and .ibd) starting with your table name. Eg: my_table.frm, my_table.ibd
3. Import your table
It worked for me.
I found the following answer at https://stackoverflow.com/a/66804621
helpful
If you are just moving your DB from one folder to another folder, but your InnoDB tables no longer work, because they can't be found and the error message "Table does not exist in the engine" is displayed, then these pair of SQL statements can be as quick as helpful:
ALTER TABLE __yourtable_name__ DISCARD TABLESPACE ;
ALTER TABLE __yourtable_name__ IMPORT TABLESPACE ;
In pratice, the .IDB file is detached from .FRM file and then bound again, so that table contents turn into readable.
It worked in my case. Hope yours too.
I also had same issue on my mac. I was running 5.3.0 version. I removed that version and installed 7.2.1 version. After this it is working in my case.
For me I removed whole data folder ( and took a backup ) from xampp\mysql\ and pasted data folder of previous one here which solved my problem...
I currently installed a new WampServer version (2.5) wherease an old was previously installed (2.2).
unfortunally, my new WampServer2 doesn't work ; I get a message wich inform me that the "service" cannot be found (cf : line 325 of the config file). But I don't find a way to solve this problem.
So, I installed my 2.5 version in a new folder (c:/wamperserver2/ instead of c:/wamp/) and it works. The problem is I haven't my old SQL databases.
Does someone know how can I get them, from a file for example ?
Regards
After some searchs, I found a way.
I explain it there :
in the old wamperserver folder, copy the database folders from bin\mysql\mysqlX.X.X\data\
paste them in bin\mysql\mysqlX.X.X\data\ of the new wampserver folder
then, in the same folder, rename the file "ibdata1" in "ibdata1.bak"
Finally, get the one from the old WampServer folder
Maybe it will be necessary (but it didn't work for me) to cut/paste the users file (user.frm, user.MDY, user.MYU) from the data\mysql\ from the old wamperserver folder to the new wampserver folder. I think these files contain MySQL users, but this solution wasn't good for me (mysql 5.5.24 to mysql.5.6.17).
I've installed MySQL on my Mac running lion using their DMG installer. This has created 2 folders, mysql-5.5.15-osx10.6-x86_64 and mysql-5.5.9-osx10.6-x86_64 with a symlink from /usr/local/mysql/ leading to the newer one. My databases are still in the old folder, in the data folder.
Is it OK to just delete the new data folder, then move the old data folder into the newly installed folder (/usr/local/mysql-5.5.15-osx10.6-x86_64) using this:
sudo mv /usr/local/mysql-5.5.9-osx10.6-x86_64/data /usr/local/mysql-5.5.15-osx10.6-x86_64/data
Are there any gotchas I need to worry about? Is it smarter to just change this in the configuration file?
You should look at your my.cnf file to see which folder it is pointing to as the datadir. If you delete the folder it's pointing to, it won't know where to find your data. You can change this value to point to where ever you want your data stored.