How to use Xammp or apache with Unity - mysql

I m not very good with SQL and database in general.
I created a login database with its login menu. I use XAMMP ( apache and MySQL) to connect to a server through a .php file.
The thing is, when i run my project, i cant connect to my database if apache is not running (although mySQL is but that seems unrelevant).
I was wondering how to i make apache run automaticaly with my project or enable my project to connect to my databse without the need to connect to apache?
Or am i missing something essential?
PS: I have a xammp folder(with all the xammp related stuff), a login.php file inside it which is not inside my project folder

Related

How to login to PhpMyAdmin with a Deck.app mysql instance?

Using the deck app, that uses Multipass & Docker to build containers and instances of specific technologies (such as Laravel, CodeIgnite, Apache, etc.,) to create a mysql instance it installs a copy of phpmyadmin and allows you to view the server through the browser.
I cannot logon to the phpmyadmin page that is created by this mysql/phpmyadmin instance in the deck app
I have messed around using CLI (terminal) to initiate the server to make it active, however this generally resulted in errors.
I have web hosting that allows me to use remote myqsl through cpanel but I don't know how to connect it to a localhost.
I would like to know how to login or use the mysql server.
I would appreciate advice on what I need to do to make this new mysql instance usable, so I can get a username, password & database name to utilise in a laravel project.
I would also like to know if there is any better solution for creating a mysql & phpmyadmin database to use for a laravel project.
Thanks in advance!
I have messed around using CLI (terminal) to initiate the server to make it active, however this generally resulted in errors.
What are the errors?
I have web hosting that allows me to use remote myqsl through cpanel but I don't know how to connect it to a localhost.
You wouldn't; you'll want to install your own phpMyAdmin locally rather than connecting your web host to your local server. You should not expose your local database server to the internet.
I would like to know how to login or use the mysql server.
Using the password you set during installation, or if you weren't prompted, usually it's a blank password.

Nodejs application get data from Hostinger Website Mysql database. How do I solve this

My client has a website hosted on hostinger, He has linked me on his hosting. Database is Mysql. It is a ecommerce business website and I need to get some data from the mysql server through my NODEJS Application
It has a remote mysql feature.
I tried using mysql npm library, but i dont know what credentials to put there. I have no clue how to connect to a already hosted mysql database, It has a remote access feature, which I could not use.

How to create a WordPress website when the hosting service doesn't include a CPanel or a remote access to MySQL?

How to create a WordPress website when the hosting package that was given by T-Home (T-Mobile) only includes a FTP password and FTP username, but doesn't include an access to a hosting panel or a remote access to MySQL?
If you've been provided a MySQL database, but you just can't access it remotely then this shouldn't be a problem. You can just upload the Wordpress installation files via FTP and then open your website in your browser and you can configure everything with the WordPress installation wizard, which should automatically start once you uploaded everything to your webspace.
If your provider hasn't provided you a MySQL database I see no way to make this work. (You can create a Blog on http://wordpress.com though).
That is correct.
You can download WordPress installation zip in your local system, extract it and upload it on server using FTP account.
MySQL is generally installed in same server and you can use localhost as server name (no need to have remote access). Most of the providers do not provide remote mysql access to avoid security issues.
Once you have uploaded WordPress files on server, access your site with domain.com (if the domain is pointing to same server) OR if it does not point to server, you can access it with temporary URL and proceed with the installation steps.

Run mySQL on Server with Django

I'm new to web development and I'm trying to go live with my website. Currently I can run MAMP mysql and then in the django app I can run 'python manage.py runserver' to run a virtual version on my system.
Currently I have uploaded (rsync) my django files to the server. How do I upload and run my mysql server on the web server? How do i dictate the domain? I know before that the domain was 127.0.0.1......
THanks
127.0.0.1 is localhost, so if your code is hosted on a remote server you can still access the db with that host. You need to first make sure MySQL is installed on the server. Once that has been taken care of use the MySQL terminal to create your db, its as easy as that.
Here is a useful page of MySQL commands:
http://www.pantz.org/software/mysql/mysqlcommands.html

ExpressionEngine Installation Issues: Database Connection Error on Localhost

Running into an odd issue with a getting a successful localhost install of ExpressionEngine 2.5.3.
I am able to run the ExpressionEngine Installation and Update Wizard where server settings, database setting and admin account information is entered. So the Apache side is working as expected, or so I assume.
The issue crops up when I click on the Install ExpressionEngine button — the point where the installer starts working it's magic — get this error:
A Database Error Occurred
Unable to connect to your database server using the provided settings.
Filename: controllers/wizard.php
Line Number: 1532
For the SQL Server Address, Username and Password, I am using the same values I have used in the past: localhost for the server address, root for the username and root for the password.
Those credentials work when used with Sequel Pro 0.9.9.1.
Permissions on config.php and database.php — both empty files — are set to 666, as suggested by the ExpressionEngine installation documentation.
I am trying this on a MacBook Air running 10.8.2 with the built-in Apache and MySQL running via XAMPP. I am using VirtualHost X to so http://baseline.loc/ points to baseline.loc in my Sites folder. There are no other instances of Apache or MySQL running.
I am not well versed debugging server issues but I am comfortable working in the terminal.
Any ideas what I should be looking at to figure out why this usually basic stage of a new project has become a stumbling block?
I've had issues before using localhost as the host. Does 127.0.0.1 work for you?
I've had similar in OSX using mamp, simply changed the folder permission of the web folder to everyone read/write via finder and that did the trick