ADDING FILES TO YOUR GITHUB ACCOUNT & Inspect Element & Export SQL file from XAMPP


sign into your github account


create a new repository

give it a name of your choice

click create repository


ensure you are in the project folder directory

for quick access; copy the folder on the desktop


open git bash terminal

cd desktop

cd folder-name (cd whitepace-academy)


HANDLE few git commands

type:: git init (a git folder is created in your project folder)

type:: git add . (add the period sign)

type:: git config --global user.email "ajalabamise@gmail.com"

type:: git config --global user.name "ajalabamise"

type:: git commit -m "initial commit"  (it shows all your folder files)


CONNECT your local github folder in your github repository

copy and paste the code below from your github repo into your git terminal and press enter key

git remote add origin https://github.com/ajalabamise/my-web-dev-tutorial.git


UPLOAD the files to github repo

git push -u origin master


BROWSER verification

a browser login dialog box pops up, asking you to log into your github account,

sign in and click accept


REFRESH your github repo

All your files are inside your folder


Steps to use inspect element

right click the browser, select inspect

image



HOW to export sql file from XAMPP

METHOD 1 (using GUI)

type localhost/phpmyadmin in the web browser

click the desired database to be exported

click the EXPORT tab

check your download folder


METHOD 2 (using shell - command prompt)

1. launch xampp control panel

2. start apache and mysql

3. click the shell button in xampp control panel

4. create a folder in the local disk (i called mine dump)

5. follow the Syntax or format below ()

mysqldump --databases --user=root --password databaseName > export_into_db.sql

password is empty, it is set to nothing

6. press the enter key, if it ask you for password, press the enter key if you don't set password for XAMPP...if you have password, type it and press enter key

7. check your dump folder to set the exported sql file

example (real sample format to type into the shell)

mysqldump --databases --user=root --password cart_db > C:\dump\cart_db.sql


SNAPSHOT



TO create default username and password for admin

1. create a table users

2. id (int) ai, user_name (varchar 255), password, name

3. click save

4. click the table, click insert

5. since id is auto increment, don't type anything inside it, fill information for user_name, password and name. for example: admin, password, Bamise

Comments

Popular posts from this blog

Basic Web Page - phase 1