How to connect to ssh command prompt using cPanel info

cPanel is the one of the most widely used server management software ,it has lot of good features to manage files ,manage database system ,mange software’s etc , but in some case we need ssh connection to install or run features software or program.In this section we will discuss how to connect to ssh command prompt using cPanel info

1) Open SSH Access From Security Section

How to connect to ssh command prompt using cPanel info step 1

2) Click Manage SSH Keys

3) Generate a new key

Use your own password

How to connect to ssh command prompt using cPanel info step 2

4) View Private Key

How to connect to ssh command prompt using cPanel info step 3

5) Convert the key to PPK format : Use same password you used for generating key

6) Open Putty Software ,add host name ,browse PPK key and connect (Install Putty software if not Installed )

How to connect to ssh command prompt using cPanel info step 4

7) Connect to ssh command prompt using cPanel info

How to connect to ssh command prompt using cPanel info step 5

Illuminate \ Database \ QueryException (1045) SQLSTATE[HY000] [1045] Access denied for user @’localhost’ (using password: YES) (SQL: select * from information_schema.tables where table_schema =

am getting Illuminate \ Database \ QueryException (1045) SQLSTATE[HY000] [1045] Access denied for user ‘dstories_lara19’@’localhost’ (using password: YES) (SQL: select * from information_schema.tables where table_schema = error in laravel
IlluminateDatabaseQueryException

1) open .env file from root directory and change database username and password

Add add database info and save

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=DATABASENAME
DB_USERNAME=USERNAME
DB_PASSWORD=PASSWORD

How to take a screenshot in windows 10

Taking a screen shot is simple in windows ,sometimes we need send a screenshot of your windows application screen to your friend or technical instructor,so here we are explore how to take a screenshot in windows 10

Fortunately windows 10 has “Prtsc” key to take a screenshot in windows 10

take a screenshot in windows 10

1) Press “Prtsc” from the window to take a screenshot in windows 10

2) Then open paint and press CTRL+V
screenshot in windows

3) save that images as per the requirement

how to define a function in python

As per the latest trends set python is the most exploring programming language,expert says in the middle of 21st century 70% of the day life application will be depend on python programming language, python and artificial intelligence definitely will brings miracle in the middle of 21st century.So being a programmer without python programming language you cant survive in 21st century.Like other programming language function in python is also so important.so basically our question is how to define a function in python.To define a function in python programming language, python has its on syntax. lets see the syntax

def FUNCTION-NAME( PARAMETER):
    FUNCTION_BLOCK
   return [EXPRESSION]

def            => Function blocks begin with this keyword def 
FUNCTION-NAME  => Name of the function you can define your own name

PARAMETER      => It the Parameter passing to the function when function was called

FUNCTION_BLOCK => Function code block

EXPRESSION     =>  return [EXPRESSION] passing back an expression to the caller

See example

def sum(a,b):
 resultvalue = a+b
 return resultvalue

x =10
y = 40
print(sum(x,y));
x =60
y = 40
print(sum(x,y));

how to define a function in python

def printPrime(lower,upper):
 print( "prime numbers between "+str(lower)+ ", "+str(upper))
 for num in range(lower,upper + 1):
    if num > 1:
       for i in range(2,num):
           if (num % i) == 0:
               break
       else:
           print(num)

x =10
y = 20
printPrime(x,y);
x =1180
y = 1200
printPrime(x,y);

how to define a prime number display function in python