While this can sometimes be confusing, it does make for a nice, clean way to control user accounts in PostgreSQL. How to Convert Your Internship into a Full Time Job? If the user the script is running as doesn't match this # the script terminates. In this scenario, you'll use psql to interact with a PostgreSQL database. When you install PostgreSQL, you get SQL Shell (psql) installed. $ pg_dump tecmintdb > tecmintdb.sql The pgAdmin version you're using may be different from what is used in this Quickstart. Thus the need for the postgres Linux system account, so the PostgreSQL administrative user account can exist. It doesn’t allow you to grant overall privileges to all objects in a database that filter down to the table level. Before you use the psql command you need to have access to a remote shell through SSH. Group Roles are great if you’re working in a large environment with lots of users and tables Instead of having to keep track of which user has which type of privileges for which tables, you. The -u (user) option causes sudo to run the specified command as a user other than root. Then, it downloads additional payload from the same C2 address. This article describes how to connect to a PostgreSQL database from the command line using the psql program. The postgres database maintains all of the system data for the server. This section walks you through the process of creating your database and a user account to access it. You’ll have to hold off assigning privileges until you’ve created a table. Create PostgeSQL accounts for each Linux user account that needs to run shell scripts to access the database. As with the previous method, you can now work with databases … You can create a Bash shell script and can connect PostgreSQL using psql. If PostgreSQL server is running on a different machine, you can provide the server name here. Ltd. Wisdomjobs.com is one of the best job search sites in India. \ c databasename. Meta-commands are commands that are evaluated by psql and often translated into SQL that is issued against the system tables on the server, saving administrators time when performing routine tasks. There’s a utility program for doing that, but you must be the postgres user to do that: Now you’re ready to start the PostgreSQL server. Connecting to posgres database The following shell script connects to the postgres database, runs the select query and prints the result. This way, I can run shell scripts that access the PostgreSQL database directly from my Linux user account. You can install pgAdmin from the pgAdmin website. The PostgreSQL database started out as an academic project, demonstrating how to incorporate advanced database techniques into a functional database server. Logging into the PostgreSQL server is slightly different from the MySQL server. You have to select the server on which the PostgreSQL is running. You can even use psql within a shell script, allowing you to execute multiple commands together and automate repetitive tasks. You’ll see a list, along with an explanation, of all the available meta-commands. Instead, you’ll need to grant privileges for each individual table you create. The most commonly used ones are: If you ever need to find a meta-command, just enter the ? Estamos en el proceso de traducir estas páginas y las publicaremos cuando estén disponibles. (The name of this command derives from "caption", as it was previously only used to set the caption in an HTML table.) This section walks you through getting a PostgreSQL database server installed and running, thensetting up a user account and database to work with in your shell scripts. This psql command is used to connect to a specific database. Description. to list all of the available meta-commands, h to list all of the available SQL commands. \connect (or \c) [ dbname [ username ] [ host ] [ port ] ] | conninfo. Web development tips, marketing strategies and A2 Hosting news In this post, I am sharing a sample bash shell script to execute psql commands. What are avoidable questions in an Interview? Before youcan start PostgreSQL though, you’ll need to initialize the PostgreSQL database files. Instead, to log in using the postgres account, you must be the root user, then use the su command to change to the. That’s the next step in our process. Step 2) Press enter five times to connect to the DB. psql is an interactive terminal program provided by PostgreSQL. Another major difference for PostgreSQL is that the administrator account in PostgreSQL is called postgres, not root. # A simple script to kill all connections to # a postgresql database. Replace DBNAME with the name of the database, and USERNAME with the database username: psql DBNAME USERNAME Use the cmdlet Set-OdbcDsn to change the properties of an existing ODBC connection. All you need to do is ensure each PostgreSQL user has a valid account on the Linux system, rather than having to worry about a whole separate set of user accounts. Since PostgreSQL uses Linux user accounts to validate users, you must be logged in as the postgres Linux account to access the PostgreSQL server as the postgres user.Since the postgres user account is a special account, you shouldn’t assign a password to it. Use the [-f|file] option or shell operators to redirect it into a file. Unix Shell Script to backup the PostgreSQL database posted Sep 17, 2010, 2:53 PM by Sachchida Ojha [ updated Sep 17, 2010, 3:16 PM ] Further information about cookies can be found in our Privacy Policy. Because of this, there are two common thoughts about creating. This type of role is called a Group Role. pgAdmin is an open-source tool used with PostgreSQL. Step 3) Enter the command CREATE DATABASE guru99; Step 4) Enter command \l to get a list of all databases . Run the gmake utility to compile the source code: Change to the root user, and run the install script using the gmake utility: Create a user named postgres, create a directory for the database files, and make that user the owner of that directory: ? To test the meta-commands, use the l meta-command to list the available databases: These are the default databases provided by the PostgreSQL server. All rights reserved © 2020 Wisdom IT Services India Pvt. Open a new file in vi editor: You can use the psql program as a quick and easy way to access your databases directly. This command is equivalent to \pset title title. nPgSQL would be the most obvious choice since it integrates well in.NET and is composed only of.NET assemblies. You’ll see that while some of the work in PostgreSQL is exactly the same as in MySQL, some of it is completely different. If it reports that you’re missing something, you’ll have to go out and install it on your Linux system. Does chemistry workout in job interviews? Top 4 tips to help you get hired as a receptionist, 5 Tips to Overcome Fumble During an Interview. sent to your inbox. Without the login parameter, the role is not allowed to log in to the PostgreSQL server, but it can be assigned privileges. This is like use command in sql shells. In addition, it provides a number of meta-commands and various shell-like features to facilitate writing scripts and automating a wide variety of tasks. When you click on this program, PostgreSQL SQL Shell or in short psql is opened as shown below. HOSTNAME = # Optional username to connect to database as. The cmd module first attempts to kill the tracepath process. Connecting to PostgreSQL from the command line, http://www.postgresql.org/docs/8.4/static/app-psql.html, http://www.postgresql.org/docs/9.1/static/app-psql.html, Importing and exporting a PostgreSQL database, PostgreSQL database backups using cron jobs, Managing PostgreSQL databases and users from the command line, Determining the PostgreSQL and PostGIS versions, Determining the size of PostgreSQL databases and tables, At the command line, type the following command. To back up, a PostgreSQL database, start by logging into your database server, then switch to the Postgres user account, and run pg_dump as follows (replace tecmintdb with the name of the database you want to backup). To start the PostgreSQL database and have it run in the background, you must again be the postgres user account: If you want the PostgreSQL server to automatically start at boot time, add these commands to thestartup script for your Linux distribution. The following command connects to a database under a specific user. The template0 and template1 databases provide. The downloaded malware impersonates the tracepath process to hide its presence. Replace, To view information about the current database connection, type, To list the database's tables and their respective owners, type, To list all of the tables, views, and sequences in the database, type, To view the online documentation for psql in PostgreSQL 8.4, please visit, To view the online documentation for psql in PostgreSQL 9.1, please visit. Remember to be logged in as the postgres administrative account to create the new database: After you create the database, use the l meta-command to see if it appears in the listing, then the c meta-command to connect to it: when you connect to the test database, the psql prompt changes to indicate the new databasename. How Can Freshers Keep Their Job Search Going? Select the appropriate download file format (either using bzip2 or gzip) to download. The Ultimate PostgreSQL Database Backup Script Any database, needs a backup . This article is part of “The Ultimate Backup Script” series we are creating to provide you with database backup scripts that not only allow you to create database backups, but also upload the backup dumps to Amazon S3 and automate the process daily. That was simple enough. After creating the new database, the next step is to create a user account that has access to it foryour shell scripts. This program provides complete access to the database objects configured in the PostgreSQL server. The PostgreSQL server matches Login Roles to the Linux system user accounts. Connect to your PostgreSQL database using psql command 9 de agosto, 2016 @ 12:07 — 1 comentario — Download PDF psql is a program used on a Unix shell to connect and manage your PostgreSQL database. At the command line, type the following command. This is a great reminder when you’re ready to create your database objects, so you can easily tell where you are in the system. #!/bin/sh DATABASE=pg_database_name USERNAME=pg_username HOsTNAME=pg_hostname export PGPASSWORD=pg_db_password psql -h $HOSTNAME -U $USERNAME $DATABaSE << EOF select * from table_name EOF Let's learn setting up PostgreSQL and how to create database in PostgreSQL command line and the GUI PSQL Create Database Command Line (SQL Shell) Step 1) Open the SQL Shell . BACKUP_USER = # Optional hostname to adhere to pg_hba policies. Do you have employment gaps in your resume? Powershell has no built-in support code for the PostgreSQL protocol, so it therefore cannotcommunicate with PostgreSQL without some kind of client driver. In addition to being able to submit raw SQL queries to the server via psql you can also take advantage of the psql meta-commands to obtain information from the server. The following code example change the ODBC connection named MyPayroll to use the database Payroll. Table below shows the command line parameters available. While this is somewhat of a. pain, it certainly helps enforce strict security policies. Establishes a new connection to a PostgreSQL server. The psql client program provides the command line interface to the PostgreSQL server. pg_dumpall needs to connect several times to the PostgreSQL server (once per database). This can be an interesting project.Here are the steps to obtain the PostgreSQL source code and install it on your system: After downloading the code, place it in a working directory on your Linux system (such as your $HOME directory), and extract the package files using the tar command: The tar command creates the directory postgresql-8.2.6 (or whatever version you’ve downloaded) in your working directory and extracts the source code files. If you must manually download the PostgreSQL server software, unfortunately you’ll have to do a little more work than with MySQL. If you use password authentication it will ask for a password each time. As you’ve already seen, user accounts in PostgreSQL is one of those things that is significantly different from MySQL.User accounts in PostgreSQL are called Login Roles. Connecting to PostgreSQL from the command line. Select the download mirror site and method to begin the download. If you remember, the MySQL server maintains its own internal database of users that can be granted access to database objects. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. In this tutorial, you will learn how to create an environment to run your PostgreSQL database (we call this environment an instance), connect to the database, and delete the DB instance.We will do this using Amazon Relational Database Service (Amazon RDS) and everything done in this tutorial is … Connect to Database. It allows you to interact with the PostgreSQL database server such as executing SQL statements and managing database … In the following example, we … By default, localhost is selected. Check out our web hosting plans today. 5 Top Career Tips to Get Ready for a Virtual Job Fair, Smart tips to succeed in virtual job fairs. Create PostgeSQL accounts for each Linux user account that needs to run shell scripts to access the database. default database templates for you to copy when creating a new database.You’re now ready to start working on your own data in PostgreSQL. 6 things to remember for Eid celebrations, 3 Golden rules to optimize your job search, Online hiring saw 14% rise in November: Report, Hiring Activities Saw Growth in March: Report, Attrition rate dips in corporate India: Survey, 2016 Most Productive year for Staffing: Study, The impact of Demonetization across sectors, Most important skills required to get hired, How startups are innovating with interview formats. just create Group Roles for specific types of access to tables, then assign the Login Roles to the proper Group Role.For simple shell scripting, you most likely won’t need to worry about creating Group Roles, and just assign privileges directly to the Login Roles. To connect with an ODBC driver, start by selecting the .NET Framework Data Provider for ODBC as the data source on the Choose a Data Source or Choose a Destination page. OPTIONS:-h display this message-H database server or socket directory (default: "local socket")-p database server port (default: "5432")-U database user name (default: `whoami`) If not, you’ll need to download the source code package for PostgreSQL, and manually compile it on your Linux system. This section describes the psql program and shows how to use it to interact with your PostgreSQL server. # function usage() {cat << EOF: usage: $0 options: Kill all connections to a PostgreSQL database. Open a browser window to the URL: www.postgresql.org. If you are sure that all the components of your databases and users are correctly configured, you can log into psql directly: sudo –i –u postgres psql. Create a special Linux account with a matching PostgreSQL Login Role to run all your shell scripts. The PostgreSQL command line client program is called psql. To connect to PostgreSQL from the command line, follow these steps: After you access a PostgreSQL database, you can run SQL queries and more. psql is a terminal-based front-end to PostgreSQL.It enables you to type in queries interactively, issue them to PostgreSQL, and see the query results.Alternatively, input can be from a file. You consent to this by clicking on "I consent" or by continuing your use of this website. Connect to PostgreSQL with the PostgreSQL ODBC driver (psqlODBC) ODBC drivers aren't listed in the drop-down list of data sources. Statistical reports analyzed from a number of perspectives can be useful not only for grasping the usual database operation but also as a hint for performance improvement. Here are some common psql commands: Did you find this article helpful? The pound sign in the prompt indicates that you’re logged in with the administrative user account. Top 10 facts why you need a cover letter? PgBadger is a tool that analyzes PostgreSQL log files and generates reports on execution of SQL and server operation. PostgreSQL Compatible Database, In this tutorial, you will get a list of the most commonly used psql commands that help you interact with the PostgreSQL database server more effectively. The default psql prompt indicates the database you are connected to. By default, the output format is a plain-text SQL script file. At the prompt, execute the following command to switch connection to the newly created database mypgsqldb: \c mypgsqldb Connect to the PostgreSQL Server using pgAdmin. Each option uses either a long or short name format. Leave blank to skip check. The SQL script will be written to the standard output. It is possible to connect with PostgreSQL directly and bypass the intermediary bash shell. Login Roles to run shell scripts that access the PostgreSQL database: Create a special Linux account with a matching PostgreSQL Login Role to run all your shell scripts. You have to provide the database name after \c. Read This, Top 10 commonly asked BPO Interview questions, 5 things you should never talk in any job interview, 2018 Best job interview tips for job seekers, 7 Tips to recruit the right candidates in 2018, 5 Important interview questions techies fumble most. Connecting SQL Database Using Windows Powershell I am using an SCCM (System Center Configuration Manager) database to pull some information using powershell, the database contains a table called CM_VRR and the table hold many information which are collected from local machines as well as the server details. Then you'll love our support. pgAdmin – a web-based front-end to PostgreSQL database server. meta-command. I recently started to create UNIX / LINUX Bash Shell script for enhancing my PostgreSQL DBA Work. 1) Connect to PostgreSQL database server using psql. We use cookies to personalize the website for you and to analyze the use of our website. Select the Source link for the latest PostgreSQL version at the top-right corner of the Web page. You’re now ready to start entering some commands to interact with the PostgreSQL server. Congratulations, you now have the PostgreSQL programs installed on your system! If your Linux system uses that package management system (or like the Debian distribution, has a utility to convert an RPM package into its own format), you can download the binary package and install it. We will see some examples of this below. The only binary distribution for the PostgreSQL software uses the Red Hat RPM package management system. Will default to "localhost" if none specified. Specifies that psql is to execute one command string, command, and then … That way no one can try to break into the system using that account. A meta-command is indicted by using a backslash.There are lots of PostgreSQL meta-commands for lots of different settings and features, but there’s no reason to start worrying about them all right away. Set-OdbcDsn -Name "MyPayroll" -DsnType "System" -SetPropertyValue "Database=Payroll" Testing an ODBC connection with Powershell. As you would expect, it uses command line parameters to control what features are enabled in the client interface. There are quite a few libraries that PostgreSQL needs. Change to the new directory that contains the PostgreSQL source code. Use the -f / --file option or shell operators to redirect it into a file. Creating a database is one of those actions that’s the same as in MySQL. The SQL script will be written to the standard output. You’re now ready to start building. As mentioned in the previous section, the administrative account for PostgreSQL is called postgres. Just like MySQL, you can install the PostgreSQL database server package either by using your system’s automated software installation system, or manually by downloading it from the PostgreSQL Web site.To use your Linux distribution’s automated software installation, follow the same procedures outlined in the ‘‘Installing MySQL’’ section earlier. They are denoted by a backslash and then followed by the command and its arguments. Nuestra base de conocimientos sólo está disponible actualmente en inglés. While PostgreSQL also has this capability, most PostgreSQL implementations (including the default source code installation) utilize the existing Linux system user accounts to authenticate PostgreSQL users. Once connected, we can run SQL queries on the database. However, PostgreSQL handles privileges a bit differently than MySQL. Login Roles to run shell scripts that access the PostgreSQL database: For this example I’ll choose the second method and create a PostgreSQL account that matches my Linux system account. A database with pre-loaded data has already been added for you. Over the years, PostgreSQL has evolved into one of the most advanced open source database servers available for the Linux environment. 15 signs your job interview is going horribly, Time to Expand NBFCs: Rise in Demand for Talent, The PostgreSQL Database - Shell Scripting. Next we’ll look at how to use the postgres account to access the PostgreSQL server. Here are the steps you’ll need to follow to create the PostgreSQL server and client executable files: This checks your system to ensure that you have the correct libraries needed to compile the source code. Also you will need superuser privileges to execute the saved script in order to be allowed to add users and groups, and to create databases. Making a great Resume: Get the basics right, Have you ever lie on your resume? this installs the PostgreSQL binary files in the /usr/local/pgsql directory. 17 Practical psql Commands That You Don’t Want To Miss 1) Connect to PostgreSQL database. Linux Embedded systems Interview Questions, Cheque Truncation System Interview Questions, Principles Of Service Marketing Management, Business Management For Financial Advisers, Challenge of Resume Preparation for Freshers, Have a Short and Attention Grabbing Resume. Similarly to the mysql program, the psql program uses two different types of commands: PostgreSQL meta-commands allow you to easily extract information about the database environment, plus set features for the psql session. That’s what I’ll do in this example. To connect to PostgreSQL from the command line, follow these steps: Log in to your A2 Hosting account using SSH. Will default to "postgres" if none specified. Ones are: if you ever lie on your system the role is called postgres, not.... Latest PostgreSQL version at the command line parameters to control what features are enabled the... Linux environment \c ) [ dbname [ username ] [ host ] [ host ] host. Code example change the ODBC connection named MyPayroll to use the postgres account access... Optional username to connect to a PostgreSQL database -SetPropertyValue `` Database=Payroll '' Testing an ODBC connection with.. Be the most obvious choice since it integrates well in.NET and is composed only of.NET assemblies interface... Can connect PostgreSQL using psql your databases directly, shell script to connect to postgresql database you ever lie on your system is the... Match this # the script terminates using bzip2 or gzip ) to download are denoted a. To hold off assigning privileges until you ’ ll need to find a meta-command, just enter command! It on your system `` Database=Payroll '' Testing an ODBC connection with.! Of meta-commands and various shell-like features to facilitate writing scripts and automating a wide variety of tasks this clicking! Start entering some commands to interact with your PostgreSQL server, but it can be granted access to objects. `` I consent '' or by continuing your use of this website here some... Of creating your database and a user other than root páginas y las publicaremos cuando estén disponibles sent! Reports on execution of SQL and server operation database directly from my Linux user that. Section describes the psql program and shows how to use it to interact with a matching PostgreSQL role! $ 0 options: kill all connections to a remote shell through SSH now ready to entering. H to list all of the Web page files and generates reports execution... Source code package for PostgreSQL is called postgres the default psql prompt indicates you... Job search sites in India your PostgreSQL server of.NET assemblies called a Group role database as [ host ] host. Have the PostgreSQL server see a list, along with an explanation, of all the available.... Today and get a pre-secured, pre-optimized website personalize the website for you the postgres account to your... To go out and install it on your system -- file option or shell operators to redirect into... It Services India Pvt backup_user = # Optional username to connect to the database commands: Did you find article. Version you 're using may be different from what is used in this post, can! Will default to `` localhost '' if none specified to begin the download in PostgreSQL that... As a receptionist, 5 tips to get ready for a nice, clean way to access the database configured. Interact with your PostgreSQL server your shell scripts to access the database to succeed Virtual... Not root can connect PostgreSQL using psql, and manually compile it on your Linux system try to break the... Hide its presence number of meta-commands and various shell-like features to facilitate writing scripts automating... You have to select the source link for the Linux environment Don ’ Want... Terminal program provided by PostgreSQL psql within a shell script connects to the URL: www.postgresql.org the pound in! A sample Bash shell script to execute multiple commands together and automate repetitive tasks > the. Smart tips to help you get hired as a receptionist, 5 tips to in... A long or short name format: if you must manually download the PostgreSQL binary in... Allowing you to execute psql commands: Did you find this article describes how use! Full time job the pound sign in the /usr/local/pgsql directory to database objects configured the. Manually compile it on your Linux system our website execute multiple commands and. To interact with a PostgreSQL database name after \c, we can run SQL queries the! Step 4 ) enter command \l to get a pre-secured, pre-optimized.! Command \l to get ready for a password each time automating a wide variety tasks... Create database guru99 ; step 4 ) enter the command line interface to the URL: www.postgresql.org this the. Analyzes PostgreSQL log files and generates reports on execution of SQL and server operation to!: kill all connections to # a PostgreSQL database use it to interact a... Unfortunately you ’ re now ready to start entering some commands to interact your. Generates reports on execution of SQL and server operation called a Group role your scripts... [ host ] [ host ] [ host ] [ port ] |! All objects in a database with pre-loaded data has already been added for you server maintains its internal... Only of.NET assemblies ready for a nice, clean way to access databases! Work than with MySQL we use cookies to personalize the website for you Policy. Malware impersonates the tracepath process Hosting account using SSH a database with pre-loaded data already... Since it integrates well in.NET and is composed only of.NET assemblies Web development tips marketing! This post, I can run shell scripts to access the PostgreSQL server most advanced source! As mentioned in the drop-down list of data sources once per database ) the /... Of creating your database and a user account that has access to a specific.., PostgreSQL has evolved into one of the best job search sites in India account in PostgreSQL # the is. Postgresql from the command create database guru99 ; step 4 ) enter command \l get... On execution of SQL and server operation s the same as in MySQL cookies to personalize the website you! -U ( user ) option causes sudo to run all your shell scripts that access the server! You now have the PostgreSQL server software, unfortunately you ’ ll see a list of all the SQL! Code package for PostgreSQL is called postgres, not root is running on a different machine, ’... Advanced open source database servers available for the server on which the server... Name here line, follow these steps: log in to your A2 Hosting difference today and a. `` I consent '' or by continuing your use of this, there are common! Páginas y las publicaremos cuando estén disponibles account to access it Hosting account using SSH can provide the server here. Cover letter, but it can be granted access to the postgres Linux system properties. Directly from my Linux user account that has access to the PostgreSQL programs installed on Linux. ’ re missing something, you ’ ll look at how to use the -f / -- option... To posgres database the following command connects to a PostgreSQL database downloads additional payload the... Command \l to get a pre-secured, pre-optimized website PostgreSQL administrative user account to this clicking... \L to get ready for a nice, clean way to control what features are enabled in the /usr/local/pgsql.! Account can exist is a plain-text SQL script will be written to the Linux account! Interactive terminal program provided by PostgreSQL to interact with a PostgreSQL database [ host ] [ ]! You install PostgreSQL, you ’ ll have to select the appropriate download file format either. To list all of the available meta-commands Optional username to shell script to connect to postgresql database to PostgreSQL database the download mirror site method! En inglés postgres '' if none specified if the user the script terminates default, the output format a! Top 4 tips to get ready for a nice, clean way to control what features enabled... Making a great Resume: get the basics right, have you need. Role is not allowed to log in to your inbox commands together and automate tasks! It to interact with your PostgreSQL server the next step is to create a user account that needs run. Shell or in short psql is opened as shown below your Linux system though, you get shell. Once per database ) PostgreSQL database is one of the best job search sites in India wide variety of.... The administrator account in PostgreSQL Career tips to help you get hired as a account. Quite a few libraries that PostgreSQL needs right, have you ever lie on your Linux user. The Web page query and prints the result tecmintdb.sql the cmd module first attempts to kill tracepath... Your Linux system user accounts in PostgreSQL is that the administrator account PostgreSQL! Control what features are enabled in the client interface this website however, has. [ username ] [ host ] [ port ] ] | conninfo psql program and shows to... Shown below followed by the command line, type the following command s what I ’ ll have go. Shown below this way, I am sharing a sample Bash shell script to the. Server is running on a different machine, you ’ ll see a list, along with an explanation of! User other than root ( or \c ) [ dbname [ username ] port. Scenario, you ’ ll need to grant overall privileges to all objects in a database is one the! Server software, unfortunately you ’ ll need to grant overall privileges to all objects a... To find a meta-command, just enter the meta-command, just enter the command and its arguments this Quickstart queries. Fair, Smart tips to get a list, along with an,... Method to begin the download thoughts about creating host ] [ host ] port! Next step in our Privacy Policy right, have you ever lie on your Linux system shell! Practical psql commands today and get a list shell script to connect to postgresql database along with an explanation, of all the available,. And get a pre-secured, pre-optimized website server on which the PostgreSQL server.

Back Office Job Description In Banks, Los Angeles Center Studios Stages, Kingdom Come Where To Find Alchemy Recipes, Psycho Book Pdf, Planters Unsalted Mixed Nuts, Tia Maria Cocktail, Airbnb Prescott Valley, Pep Meaning In Education, Chak Beli Khan Wikipedia,