MySQL Database Doesn't Exist But MySQL Says It Does [closed] - php

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I'm trying to create a database called "loadboard". I am using PHPMyAdmin so I'm simply using the database wizard. When I enter "loadboard" into the database name field and submit it I get an error saying that the database already exists. The same error happens if I run a SQL command. When I go to my databases there is only one there and it is "information_schema". Why would MySQL think a database exists even though it doesn't? This is on a Linux server.
On a side note no matter what I try to name the database, it still belives it exists.
EDIT: I was able to get a database created using the name schrödingers_cat. It shows up, but then I tried to make one called loadboard again and I am getting the same error and it still does not show up.
Also if your going to downvote i'd appreciate some reasoning considering my problem is clearly outlined.

The user you are connecting as may not have permissions to view the existing loadboard database. Try connecting as root. You'll likely see it then.

Related

How to display data from an html form in an html table [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Please forgive me if this has been asked and answered before, but I couldn't find it in the search.
As stated in the title, I have a form built in HTML. I need the user inputted data to be displayed in an HTML table. I know the easiest way to accomplish this is probably to do so using SQL to store and then retrieve the data and PHP to output it in the table itself. For the life of me I cannot get this to actually work. Google is absolutely my friend but literally nothing I've tried actually works. Examples would be wonderful and I seriously appreciate the help! Thanks!
This link could help you: https://stackoverflow.com/a/15251402/4149985
Basically, you need a web server, either locally or via a hosting provider with access to a database.
Your database needs to have a table, which contains records.
You need to use PHP to connect to the database, retrieve the records and then output them as a HTML table.

Inserting Data - SQL and PHP [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
So, I don't completely understand how sql databases and servers work together. Tell me if I'm wrong. Okay, so, I can use Php to insert data into an SQL Database that is set up on the same server that is hosting the website? (Question edited)
If your server is from a third party, they may provide you with a tool such as phpMyAdmin. You can use this tool to create your database and insert information into it. That is, you don't necessarily need a server side language to create and insert data in a database. That said, you will need a server side language or framework to access and manipulate that data in your web applications.
If you are running your own server, you can install phpMYAdmin on it and do the same.

If SQL server is on my computer, how to process a form on a web server? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have Microsoft SQL Server on my computer, and separately, a website. If the action of a form on my site is set to be processed by a php script, how can I use that script to connect to and add data to a database on the SQL Server on my computer?
Thanks!
You would first need the SQL PHP Drivers then you would need to determine your connection string. Then you would need to write the php code to insert into your database (Last Answer).
You also need to create a table with the corresponding schema to hold your data. This is a very broad question hopefully this puts you on the right track.

database on php only server [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am trying to create a site with a tiny CMS, the problem is that there is only php installed on the server.
The site will mainly consit of two pages the user page and admin page. On the user page there is to be a bunch of checkboxes which when checked will do some math(not the problem I need solved). On the admin page you need to be able to add the checkboxes and assing them their values.
My approach was to read and write to a XML file that contains the data instead of a database. I have run into a lot of problems trying to accomplish this, and I am looking for some good ideas for how it can be done, or alternatives.
Thanks in advance.
You can use sqlite as database engine. This way you also create a portable version of your application and by using PDO you could always switch to another database engine later on.

how to automatically repair table if crashed [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
sometimes if a table is marked as crashed, a simple
REPAIR TABLE `tablename`
works fine to continue.
how do I add an automatic repair in my PHP script?
I get the error:
1194 - Table 'whos_online' is marked as crashed and should be repaired
This is very unlikely to make sense.
If you need to repair tables so frequently that you need to automate it, there's something wrong with your setup. You need to fix the root cause in that case.
An automated solution would also be difficult to implement. You'd have to parse the mySQL error message to find out whether the reason your query failed is maybe related to a broken table. There are thousands of different possible reasons why a query could fail.
The usual way is to monitor what is going on on the web site, and having an administrator react to problems. You could, for example, have your web app send you an E-Mail when a query fails.

Categories