Skip to main content

Create table in XAMPP PHPMyAdmin

To access phpMyAdmin from XAMPP you will need to make sure you have Apache and MySQL running in the XAMPP control panel by clicking the start buttons under the Actions column:

xampp control panel

If Apache and MySQL are green then all is well.  Then you can click the “Admin” button in the MySQL row and that will launch phpMyAdmin:

xampp mysql admin button

You can also access phpMyAdmin by typing in http://localhost/phpmyadmin/ into your browser.  The first time you access it, you will need to login using “root” as the username and there will be no password.  Once you’ve typed that in, click on “Go”:

login phpmyadmin

Once you are logged in I would recommend changing your password to secure your databases and their settings:

change pw phpmyadmin

After you’ve done that.  You will want to create a new database by clicking here:

create new database

You will then be prompted to name the database, do so, and then click on “Create”:

create database

Then you will be asked to create a table with however many columns you want.  Once you’ve decided that, click “Go” again:

create database table

This will require that you preplan your database a bit.  You’ll need to know exactly what you will be storing in it.  For this example, we will be storing the user’s name and age.  So on the next screen we will put in a names and ages column.  We will also need to give them a type, age will be INT (integer/numbers) and names will be VARCHAR (characters/letters).  Finally we will need to say how many characters can be in each column.  Age will be 3 since I don’t think anyone would live to be older than 999 (: and we will give 100 characters for their name which should be enough.  Once we filled in those fields, we would click “Save”:

create columns

And there you have it!  A new database with a table with two columns in it ready to be filled.  Be sure to watch the video at the top of this post if you want to see how to connect to the database using PHP Data Objects (PDO).  Also, be sure to check out our  if you want to learn more about PHP, databases, and how to use them together.  Have an amazing day!

Comments

Popular posts from this blog

IOT Projects souce code

IOT  Projects souce code What is IoT? The Internet of Things (IoT) is a network where everyday objects like devices, vehicles, and appliances have sensors and internet connectivity. It lets them gather and share data, work together, and perform tasks without human control. This helps boost automation and efficiency across different areas. You can learn IoT to understand its core components and get further knowledge of its functionalities. 20 IoT Projects with Source Code When it comes to IoT, there are many interesting ideas to explore, from making your home smarter to making an autonomous drone. No matter if you’re just starting or have experience, here are 20 Internet of things projects for beginners and advanced professionals. Simple IoT Project Ideas for Beginners For beginner-level, you can start with simple and fun IoT project ideas that involve basic components like sensors, actuators, and microcontrollers. Below are a few of them: 1. Smart Home Automation Smart home automat...

Connecting R to MySql in English #Training Trains

software design institute training

  ONLINE-OFFLINE IN-PLANT/INTERNSHIP With Certificate Training For B.E(ECE,EEE,CSE,IT,AI,ML,DataScience,Cyper Security),MCA, B.Sc,M.E,M.Tech. @ TrainingTrains.Online Classes Available 100 % Job placement Training Full Stack Developer | Placement Training In-plant Training/Internship Training with Project supports the various Engineering and Non-Engineering, Arts Students to develop their Skills on the IT Companies/Corporate Expectations. DURATION OF IN-PLANT TRAINING: 1 week and Above.DURATION OF INTERNSHIP: 1 Month and Above Internship-inplant training For All Departments students, Internship- inplant Training Python | Java | Full Stack Development | UI & UX | C& C++ | Php | Web Designing - HTML, CSS, Java Script, Bootstrap | MEAN Stack | MERN Stack | MEARNStack | Android | Kotlin | Flutter | Database - Oracle, Mongo DB, MySQL, MS SQL Serer | Visual Studio Code | Objective C | Swift | Go Lang | Frame work - Laravel, Django, Vue JS | Machine Learning | React JS | ...