How can I use MariaDB (XAMPP) in Windows? - windows

I am new using XAMPP. I have installed it and everything works fine, but I donĀ“t know how can I manage MariaDB engine to create and set new DDBB. My goal is to create a website in localhost and use MariaDB to develop a "Sign in" system for the users.
Every tip is welcome. Thanks!

Well, it depends on what you mean by 'using mariadb on windows'. If it's starting mariadb, then navigate to \xampp\mysql\bin and start mariadb i.e.
cd \xampp\mysql\bin
mysql -u root -p
If you want to create a website using with mariadb backend, make sure you save your work in the htdocs folder inside the xampp folder

Related

Cannot open phpmyadmin after changing the user's password

I'm doing an inventory management project in Java using XAMPP and JDBC. After downloading XAMPP and changing the user's password on localhost, I cannot log back in to phpmyadmin. I try configuring the config.inc.php file but cannot log back in to phpmyadmin. I need help.
I'm using Mac and XAMPP 8.2.0

Global Search in Moodle 3.2

I am trying to setup global Solr search in moodle 3.2 on mac and using MAMP (locally). I have installed Solr 6.6.1, and can access its admin panel through http://127.0.0.1:8080/solr/ . But I am unable to link it with moodle through PECL Solr, the reasion is that I am unable to install PECL, I don't know where to place them, and how to link with moodle.
I am getting
and
You need to follow these steps to get Solr working in Moodle.
Step:1 Delete core you have created in Solr.
Step:2 Create new core
Step:3 filled core name into Index name filed of Moodle Solr setting.
Step:4 sudo bin/solr stop -force
Step:5 sudo bin/solr start -force
If not working yet then need to reboot the system and restart Solr again.
Hope it is done!

How to run laravel 5.0 project on localhost without use php artisan serve

I have created a laravel 5.0 project with php artisan serve, now i need to know how to run laravel 5.0 project run without start php artisan serve, i have already browse lot of websites no one help me..
You need to change "server.php" to "index.php" then copy ".htaccess" from public to root directory.
See: https://stackoverflow.com/a/30053989/3948755
Laravel sever Folder is "public". There is an index.php so you can run you project from there.
Suppose if you using UbuntuOS then you have to create your local server in public directory. Suppose your folder name is laravel_test then go in that directory and run some thing like this
php -S localhost:8000 -t public
If you using windows then access public folder from URL.
localhost/laravel/public
Actually it's bad practise to access folder from URL but for local its good. You also can go with host entry. Just make sure that your target folder is "public" directory.
Normally you would have WAMP/XAMPP installed. You can access Laravel project like below
localhost/laravel/public
But this is not recommended. You should create Virtual host for example
laravel.local that pints to server-root/laravel/public.
this is how you create virtual host.
Or even better go for a Laravel Homestead .
How is your .htaccess file configured?
Try with localhost/laravel/public/index.php
Use http://localhost/projectName/public
It will be work. but in case if you have another Route and you can not access that Route and get the error like " Page Not Found " then please use the following command
sudo a2enmod rewrite
Now open the http://localhost/projectName/public/yourRoute
This is a little late but still applicable, what I like to do (using ubuntu 14.x+) is put my laravel project (let's say Project1) in my var directory, so it would be in /var/Project1, then symlink the public folder to somewhere in /var/www(+/html depending on apache version).
Symlink can be done something like this:
ln -s /var/Project1/public /var/www/html
This keeps your internal files off the grid so to speak, this is untested so if I've missed anything just comment and I will amend this post.
EDIT:
Obviously if your http root is /var/www/html you can put your project in /var/www/Project1
If you have access to xampp or wampp on your operating system you can more or less configure your virtual host like in the instruction below:
https://bestin-it.com/creating-virtualhost-on-your-local-computer-to-start-simple-index-php/
This instruction shows how to run it locally on your PC, but it works generally the same on any hosting portals. In most case in payed portals you have any web panels to configure your public folder that reference to /public folder in laravel folder's structure.

Old xampp folder can't be deleted, xampp no working

I uninstalled xampp and installed a newer version with the latest 5.4 php on Windows. When i tried to install the new version of php, the old folder in C://xampp would delete. I deleted everything from that folder except memcached which I can't delete beacuse someone else is using it. So i installed the new xampp version in xampp54 folder.
When i installed the new xampp version, i get this errors for mysql
Expected Path: "c:\xampp54\apache\bin\httpd.exe" -k runservice
MySQL Service detected with wrong path
Change XAMPP MySQL and Control Panel settings or
Uninstall/disable the other service manually first
Found Path: C:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql
Expected Path: c:\xampp54\mysql\bin\mysqld.exe --defaults-file=c:\xampp54\mysql\bin\my.ini mysql
When i try starting apache, i doesn't do anything. Anyone knows how to fix this?
Go to Task Manager Processes tab
search MySql and click
then click End task
After that, you can delete Xampp folder.
I found memcached in the services and disabled it and it all works. Lesson of the day: Install xampp in 'xampp' folder, not 'xampp_me' or 'myxampp' beacuse it seems that both apache and mysql rely on them being installed in 'xampp' folder.
Try this:
Stop the services: mysql and apache
Start > Run > Services.msc
Kill the process 'Xampp Controller' from the Task Manager
In my case, the services were stopped and removed automatically when I
uninstalled the Xampp. So, killing 'Xampp Controller' process worked for me.
To delete the C://xampp old folder we need to stop the mysql service. To stop it, go to start -> run -> type services.msc. Search for mysql & apache and right click & stop. Then you would be able to delete the C://xampp folder.
This is what worked for me: Use the command line (if on Windows) Enter this into the terminal:
rmdir /Q /S none-empty-dir
(e.g. C:\xampp)
See: https://www.windows-commandline.com/delete-directory-from-command-line/
This is worked
Go to resource monitor -> associated handle and search the folder you want to delete and end process
I have same issues with you. But this worked perfectly with me.
Go to task manager, look for details, and search for the items that denies for deleting the folder. (mine is the php) then end task. You can now delete the xampp folder.

problems after upgrading xampp to 1.7.7

i have upgraded my XAMPP server to 1.7.7, after that the file uploaded using the php move_uploaded_file function is not accessible from the network. It works OK in the server. But from a remote machine it shows there is not enough permission.I can see the files in the uploads folder but I can't copy,move, rename or preview it.
$isMove = move_uploaded_file ($_FILES['image']['tmp_name'],'uploads/'.$_FILES['image']['name']);
if I uses the copy function instead of the move_uploaded_file it works perfect. But i have used move_uploaded_files in many projects. Is there any fix for this problem.
Also a project using the zend optimizer is also not working after the upgrade.
I think that you need to set permissions of the directory so as PHP scripts can run with uid of user who has write permission or else in the case if the permissions are not such if they give write permission to user www-data they may give error.

Resources