Добавить новость
ru24.net
News in English
Сентябрь
2022

A Quick Guide to Understanding Your phpMyAdmin Area

0
A Quick Guide to Understanding Your phpMyAdmin Area

Understanding Your phpMyAdmin

If you use a WordPress website, it probably uses a MySQL database. Another one that it might use is called MariaDB. Every website needs one of those to store information like passwords, posts, and user data. When WordPress can’t connect to your MySQL database, your website probably won’t be accessible. There are a handful of […]

The post A Quick Guide to Understanding Your phpMyAdmin Area appeared first on ReadWrite.

Understanding Your phpMyAdmin

If you use a WordPress website, it probably uses a MySQL database. Another one that it might use is called MariaDB.

Every website needs one of those to store information like passwords, posts, and user data. When WordPress can’t connect to your MySQL database, your website probably won’t be accessible.

There are a handful of reasons why it’s important to understand how it works. Here are a few that I can think of.

  •   You may need to delete old data or tables
  •   You may need to update the titles of a ton of different posts at once
  •   An individual database table might need to be imported or exported

In order to get to the area we’re going to talk about, click “phpMyAdmin” from your website’s control panel. It may say “Access PhpMyAdmin” or some similar variation like mine does below.

phpMyAdmin

Image Source: Bob Buckley; Thank you!

The next screen you should see looks like this:

Image Source: Bob Buckley; Thank you!

On the left-hand side, click the database that corresponds to your website. In my case, it’s “backupweathersite” below “New” in the tree. Then, you should be at the screen we’re talking about:

phpMyAdmin

Image Source: Bob Buckley; Thank you!

The menu highlighted in red has some useful tabs on it for doing the types of things I mentioned above. Starting with Structure, here’s what you can do with each one.

Structure

Structure is probably the most important of all the tabs because it lists the tables of your database. Each table has its own set of options, like emptying it if you want to delete all the data. You can also drop the table if you want to get rid of the entire thing completely.

Be very careful with that. Instead of deleting everything, you can clear out things like old posts by running SQL queries.

SQL

Selecting SQL will give you this screen:

phpMyAdmin area

Image Source: Bob Buckley; Thank you!

There, you can run SQL queries. For example, on one of my sites, I need to remove expired jobs pretty often. If I don’t, the database fills up even if the jobs are deleted on the frontend. This causes the site to slow down a lot, and I can’t add new posts or other data.

The solution? Running this query: delete from `wp_posts` where `post_status` = ‘expired’

That takes care of thousands of old jobs in about a second, which is pretty nice!

As a side note, the screenshots in this article are from a local WordPress installation I have for a different project.

Search

Search does what it sounds like it would. When you put something in the main search field, it will automatically go through the entire database, looking for anything that’s a match. 

Here’s a tip that might also help: you can choose to include or exclude searching specific tables if you want so it doesn’t search everything.

phpMyAdmin

Image Source: Bob Buckley; Thank you!

Query

The Query tab essentially does the same thing that the SQL tab does, except it offers guidance for creating the query. You can select the table that you want the query executed in from a dropdown and then click “Update query” to see it in the window below.

phpMyAdmin screenshot

Image Source: Bob Buckley; Thank you!

Export

Image Source: Bob Buckley; Thank you!

Export allows you to download all of the tables from your database. This is useful if you want to do manual backups periodically (although there are some great plugins that can handle that). You can export the tables in a bunch of different formats, too.

These include SQL, PDF, CSV, XML, and a handful of others that you’ve probably never heard of. Mainly, Texy! Text and YAML.

Import

The import function allows you to bring in outside database tables to yours.

phpMyAdmin

Image Source: Bob Buckley; Thank you!

You can only import a table if it doesn’t exist in the current database. If the table exists already, you will get an error, and the import won’t finish, according to DreamHost.

The file can be compressed or uncompressed in a few different formats. Those include bzip2, gzip, or zip files. Something you may not be used to is the compressed file name.

It needs to be structured like “.[format].[compression]”. An example of a common one is “.sql.zip”.

Image Source: Bob Buckley; Thank you!

 

You can choose from a handful of different formats. These include CSV, ESRI Shape File, MediaWiki Table, OpenDocument Spreadsheet, SQL, and XML.

There are also a number of different SQL compatibility modes. The compatibility mode setting will dictate how MySQL works. We won’t go into each one and talk about the differences, but your options for those are ANSI, DB2, MAXDB, MYSQL323, MYSQL40, MSSQL, ORACLE, and TRADITIONAL.

Operations in phpMyAdmin

This tab gives you the ability to perform a handful of different operations, like creating a table and renaming the database. In order to create a new table, just put in a name, and the number of columns, and click Go.

Siteground has a great tutorial for creating tables since things can get kind of complicated. Below that, you can rename the database. The check box that says “Adjust privileges” is there because MySQL does not adjust the original privileges related to the database on its own.

When you check that box, phpMyAdmin adjusts the privilege table, so users have the same privileges on the new items. If you do that, the privileges for all the database-related elements are also adjusted to the new name. That includes things like tables, columns, or procedures.

Image Source: Bob Buckley; Thank you!

This section also allows you to do things like copy the database to another one and change table collations. A collation is a set of rules that defines how to compare and sort character strings.

You probably won’t ever need to mess with things like collation, but it’s nice to be semi-familiar with that, just in case.

Image Source: Bob Buckley; Thank you!

 One other thing is that you can’t really rename a database. When you do that, phpMyAdmin will create a new one (example below) and drop the old.

phpMyAdmin area

Image Source: Bob Buckley; Thank you!

Routines in phpMyAdmin

The Routines section looks like this:

Image Source: Bob Buckley; Thank you!

“Filters” won’t do anything unless you actually select a database to search. Putting a word into the “Containing the word:” section will find all of the tables containing that word in your database.

Routines are procedures and functions that do various things, like the job data cleanup function mentioned earlier. You can add one there, and it will be displayed under that tab.

Events

In the event scheduler tab, you can create and run tasks automatically based on a schedule. The schedule can vary a lot, like running a task every couple of seconds to every few weeks. In order to use it, you will need to manually turn it on by clicking where it says “off” in the picture and then clicking “Add event”.

Image Source: Bob Buckley; Thank you!

Triggers in phpMyAdmin

A trigger is a named database object that is associated with a table and that activates when a particular event occurs for the table. You could use a trigger to perform checks of values to be inserted into a table or to perform calculations on values involved in an update.

Image Source: Bob Buckley; Thank you!

Privileges in phpMyAdmin

Image Source: Bob Buckley; Thank you!

The Privileges section allows you to make changes to current user privileges or export them to a new database. There are a handful of options for editing the privileges:

Image Source: Bob Buckley; Thank you!

Designer

The Designer tab can be kind of a mess, as you can see (it’s in the “More” dropdown):

Image Source: Bob Buckley; Thank you!

The Designer feature is a graphical way of creating, editing, and displaying phpMyAdmin relations. These relations are compatible with those created in phpMyAdmin’s relation view.

To use this feature, you need a properly configured phpMyAdmin configuration storage and must have the $cfg[‘Servers’][$i][‘table_coords’] configured. It’s unlikely you’ll ever need to do anything in this tab.

Wrapping Things Up

Going into the phpMyAdmin area for a WordPress site can be pretty daunting. If you find yourself in that position, it’s important to be familiar with all the different aspects of the dashboard. Understanding the basics of what each section does will help you navigate and get things done a little quicker with less of a headache.

Featured Image Credit: Provided by the Author; Thank you!

The post A Quick Guide to Understanding Your phpMyAdmin Area appeared first on ReadWrite.




Moscow.media
Частные объявления сегодня





Rss.plus



МЕТЕОРИТ БОЛЬШЕ СИРИУСА? КАК НАЛАДИТЬ КОСМОС. Советы Высшего Всенародного Президента.

Пожар в центре Москвы локализован на площади 600 квадратных метров

Заместитель генерального директора ГПМ Радио по дистрибуции и технологиям отмечен наградой «Медиа-Менеджер России – 2024»

Совладелец «ТЕХНОНИКОЛЬ» Игорь Рыбаков запустил на Дальнем Востоке бизнес-клуб «Эквиум»


Артисты с удовольствием поздравляли друг друга - Театр и Концерт, Россия и Дети, Культура

Совершенствование квалификации педагогов-психологов: круглый стол МГППУ, 26 июля

Дирекция по качеству АО "Желдорреммаш" посетила локомотивостроительные заводы ТМХ

Как выглядеть молодо после 50 лет: рабочие способы


Portugal vs France – Euro 2024: Ronaldo and Mbappe have one last dance in quarter-final tie – stream FREE, TV, team news

An iconic Michael Jordan photo will be on Tyler Reddick's car as he races through Chicago

Sky Sports issue grovelling apology to Nottingham Forest after Gary Neville’s ‘Mafia gang’ outburst

‘I made it work that night’: Stevenson reflects on negative fan response as he readies for next outing


«Биржа грузоперевозок ATI.SU» обновила сервис «Выгодные направления»

Столичный спецназ Росгвардии завершил полевой выход в Подмосковье

Мужчину будут судить в Томске за разбойное нападение и хищение на 20 млн рублей

Куда сходить москвичам и гостям столицы 13 июля - Мытищинский форсаж: часть вторая


Глобальную версию Mega Man X DiVE закроют к концу июля

The internet is not a free-for-all—we shouldn't let big tech companies wish copyright out of existence

Dead Space x Battlefield 2042 crossover event looks fun, even if it isn't quite what Dead Space fans have been hoping for

Epic Games подала Apple заявку на возвращение Fortnite на iOS и запуск собственного магазина приложений в ЕС



Пожар в центре Москвы локализован на площади 600 квадратных метров

ТО-МÁ ворвалась в офис и устроила танцы в своем новом клипе на песню «Помада»

Заместитель генерального директора ГПМ Радио по дистрибуции и технологиям отмечен наградой «Медиа-Менеджер России – 2024»

В Подмосковье росгвардейцы провели тематическую встречу с детьми




Тишковец рассказал о погоде в Москве на выходных

Пожарные потушили возгорание в Дворце культуры в Москве

Венгрия отменила назначенную на понедельник встречу Сийярто и Бербок в Будапеште

В «Сенеже» стартовал финальный этап конкурса «Это у нас семейное»


Военкома Преображенского района Москвы Тригилева арестовали за крупную взятку

Критика Запада: Боррель исключил любые официальные контакты с Путиным

Из-за непогоды девять летевших в Шереметьево самолетов сели на запасные аэродромы

В Севастополе похоронили погибшую при атаке ВСУ воспитателя детсада Людмилу Харину


Уимблдон. 4 июля. Марреи сыграют пару последним запуском на Центральном корте, Зверев сыграет на Корте №1

Рублёв впервые с 2021 года проиграл в первом круге турнира Большого шлема

Уимблдон. 5 июля. Алькарас сыграет первым запуском на Центральном корте, Синнер – последним

30-я победа в сезоне: Медведев справился с Мюллером, а Карацев из-за травмы не доиграл матч с Хачановым на Уимблдоне


Сотрудники «Мособлпожспаса» заняли первое место на турслете «Лето-2024»

Биолог назвал причину массового появления богомолов в Москве и Подмосковье

В Севастополе похоронили погибшую при атаке ВСУ воспитателя детсада Людмилу Харину

РЕН ТВ: Визит Орбана в Москву вызвал истерику на Западе


Музыкальные новости

Надежда Бабкина выступила в Печорах в рамках фестиваля-марафона «Песни России»

«Он был очень классным». Отец двойняшек Дианы Арбениной погиб

Сеть клиник «Будь Здоров» приняла участие в VK Fest в Санкт-Петербурге

Экс-девушка Тимати Решетова обратилась в МВД из-за поста Вероники Степановой



«Зрителей будет ждать неслабый аттракцион»: стартовали съемки продолжения сериала «Бедные смеются, богатые плачут»

Пожар в центре Москвы локализован на площади 600 квадратных метров

ТО-МÁ ворвалась в офис и устроила танцы в своем новом клипе на песню «Помада»

В Подмосковье росгвардейцы провели тематическую встречу с детьми


Иванникова Наталья прошла в полуфинал конкурса «Лидеры строительной отрасли»

Сотрудники «ЯРКО» приняли участие в Летней Спартакиаде «Газпром-Медиа Холдинга»

У Владимира Путина и Нарендры Моди нашлось много общего // Россия и Индия перезапускают двусторонние отношения

«Мама похудела на двадцать килограмм»: Евгений Ершов рассказал в «УТРО.ТНТ» об участии в шоу «Сокровища императора»


Водитель «Теслы» погиб в ДТП в Москве

Два человека заживо сгорели в микроавтобусе при ДТП на МКАД

Источник 360.ru: Toyota и Tesla столкнулись в Москве, пострадали три человека

«Следующий шаг мирной миссии»: Венгерский премьер Виктор Орбан прибыл в Москву


Лучшие фото недели // Запоминающиеся кадры 1–5 июля

Сийярто о реакции ЕС на визит Орбана в Москву: Венгрия - суверенная страна

Моди собирается обсудить торговый дисбаланс с Путиным в Москве

FT: Орбан после переговоров с Зеленским встретится с Путиным в Москве





Врач Мескина: если у человека сильный иммунитет, то он не заболеет от сквозняка

Главный нейрохирург Пензы обучил врачей из Москвы лечить детей с ДЦП

Стоя или сидя: как поза при употреблении пищи влияет на пищеварение, рассказал гастроэнтеролог Садыков

Главный врач клиники микрохирургии глаза АйМед Элина Санторо: когда глаза разных цветов - норма и патология


Орбан ответил на вопрос Life.ru о реакции Зеленского на предложение о мире

В Киеве заявили о невменяемом поведении Зеленского

Ушаков: Орбан не передавал Путину посланий от Зеленского

В Киеве заявили, что Зеленский оскорбил Карлсона, внезапно отказав ему в интервью


Тренер Игнатьев не верит, что ЦСКА поборется за чемпионство в новом сезоне РПЛ

Иванникова Наталья прошла в полуфинал конкурса «Лидеры строительной отрасли»

Победитель Олимпиады-80 Николай Корольков умер в возрасте 77 лет

Команда Росгвардии победила на всероссийских соревнованиях общества «Динамо» по легкоатлетическому кроссу


Лукашенко и Си Цзиньпин провели встречу в Астане

У Орла появился город-побратим - белорусский Гомель



Сергей Собянин вручил награды московским врачам и медсестрам

Собянин рассказал о реализации программы реновации в Москве

Собянин: Путепровод от улицы Хачатуряна до Дубнинской будет достроен в этом году

Мэр Москвы вручил государственные награды врачам и медицинским сестрам


Биолог Марьинский: богомолы станут частью фауны Москвы и Подмосковья

Москвичам объяснили, как связаны смерчи и массовая застройка

Грозы, ливни и начало похолодания пообещали москвичам 5 июля

Не до шуток: приближаются опасные «египетские ночи». Синоптик Вильфанд сделал важное заявление для россиян


Критика Запада: Боррель исключил любые официальные контакты с Путиным

Бродячие собаки набросились на пятилетнего мальчика в Шатуре

В Москве на станции «Электрозаводская» приостановлено движение поездов из-за повреждения ветром провода

Кабмин России утвердил план мероприятий по укреплению традиционных ценностей


Сергей Собянин утвердил проект нового участка Рублево-Архангельской линии метро

Николай Нестеров: «Архангельск ─ старейший порт России»

Собянин: Утвержден проект участка метро от «Липовой рощи» до «Ильинской»

Жителей Поморья приглашают на «Семейный пикник»


В Крыму девушка на электросамокате рассекла лоб полуторагодовалой девочке

Михаил Ведерников поздравил владыку Тихона с днем рождения

Выставка-настроение «Семья, согретая любовью, всегда надежна и крепка»

Героико-патриотическая выставка «И грянул бой, Полтавский бой!»


Критика Запада: Боррель исключил любые официальные контакты с Путиным

РЕН ТВ: Визит Орбана в Москву вызвал истерику на Западе

Военкома Преображенского района Москвы Тригилева арестовали за крупную взятку

В Севастополе похоронили погибшую при атаке ВСУ воспитателя детсада Людмилу Харину












Спорт в России и мире

Новости спорта


Новости тенниса
Уимблдон

Уимблдон. 5 июля. Алькарас сыграет первым запуском на Центральном корте, Синнер – последним






РЕН ТВ: Визит Орбана в Москву вызвал истерику на Западе

Из-за непогоды девять летевших в Шереметьево самолетов сели на запасные аэродромы

В Севастополе похоронили погибшую при атаке ВСУ воспитателя детсада Людмилу Харину

Биолог назвал причину массового появления богомолов в Москве и Подмосковье