2015년 9월 21일 월요일

라라벨 강좌 좌표

한국사람이 만든거 같은데
잘정리된듯하다
http://schoolofweb.net/laravel-5-기초-강좌-1-introduction/

2015년 9월 19일 토요일

ERROR 2002 (HY000): Can't connect to local MySQL server through socket

mysql-errorThe post will show how to solve the above error.

MySql-sql-join-multiple-database-tables-logo-490x196Steps

– Is mysql starting properly when you run /usr/local/bin/safe_mysqld?
If so:
Verify the /tmp/mysql.sock file exists.
If not do:
mysqld stop
touch /tmp/mysql.sock

// With old brew recipes
safe_mysqld restart
// With new brew recipes
mysqld_safe restart
**Note: If mysql does not start properly after that last line:
You may need to install the tables manually using /usr/local/bin/mysql_install_db, then restart mysql

출처 :http://www.panayiotisgeorgiou.net/error-2002-hy000-cant-connect-to-local-mysql-server-through-socket-tmpmysql-sock-2/



관련 글들
http://zetawiki.com/wiki/ERROR_2002_(HY000):_Can't_connect_to_local_MySQL_server_through_socket_'/var/lib/mysql/mysql.sock'

http://won03348556.dothome.co.kr/wordpress/?p=133


http://dryad.kr/bbs/board.php?bo_table=rboard01&wr_id=294
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock


2015년 9월 17일 목요일

라라벨 사용하기~ㅎ

프레임워크 코드이그나이트를 써서

테이블 에 목록을 뿌리고, 페이징구현, 검색(1개필드) 구현 까지 해봤다

수요일은 mysql에러 socket(2) 이런 에러였는데 소켓이 자꾸 지워져서 데몬이 못올라가서 나는 에러다. 현상은 알겠는데 원인과 해결법은 몰라서 그냥 os밀고 다시 설치하니까 잘올라온다.

목요일 코드이그나이터 vs 라라벨 고민고민하다가 결국 라라벨 선택하고 6시쯤 라라벨 관련 서적 한개 구매후 집에와서 설정하는데
두둥! 이거뭐 설정하는데 왜이렇게 삽질이 필요한지 ㅎㅎ 라라벨을 몰라서 삽질하는게 아니고
apache2 을 모르고 ubuntu(linux)명령어를 모르니까 더 심한 삽질을 한다.

나중에 또필요할거같아서 올려둔다. 이건 httpd-vhosts.conf 파일 내용이다.
해당디렉토리의 권한이 없어서 포비든이 뜬다. ^_^

아! 그리고 /etc/apache2/apache2.conf 파일에서 httpd-vhosts.conf을 include해줘야한다.
그리고 /etc/hosts.conf 에서 127.0.0.1 laravel.dev 이런식으로 지정해주면 끝!
그래야 laravel.dev 이런식으로  가상으로  서버를 만든다는 그런내용인듯하다

어려워서 homstead인가 그쪽으로 가려다가 그쪽은 더어려운거같아서 ㅎㅎ



# Virtual Hosts
#
# Required modules: mod_log_config

# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot "c:/Apache24/docs/dummy-host.example.com"
#    ServerName dummy-host.example.com
#    ServerAlias www.dummy-host.example.com
#    ErrorLog "logs/dummy-host.example.com-error.log"
#    CustomLog "logs/dummy-host.example.com-access.log" common
#</VirtualHost>
#
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host2.example.com
#    DocumentRoot "c:/Apache24/docs/dummy-host2.example.com"
#    ServerName dummy-host2.example.com
#    ErrorLog "logs/dummy-host2.example.com-error.log"
#    CustomLog "logs/dummy-host2.example.com-access.log" common
#</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "/home/kyungtai/workspace/learning-laravel/public"
    ServerName laravel.dev

<Directory "/home/kyungtai/workspace/learning-laravel/public">
   Order allow,deny
   Allow from all
   # New directive needed in Apache 2.4.3:
   Require all granted
</Directory>

</VirtualHost>

2015년 9월 7일 월요일

씬나는 월요일?



가사는 대충  뜻은

말말말

그동안 어떻게 참았지?  입열지마세요 시끄라우니까~ 이런뜻인가? ㅎㅎ




You say come over, let's have a little chat
And I say "Okay, I guess I'm fine with that"
But as we get to talking, I could go insane
You just kept speakin' those words and it started to hurt my brain.
One word after the other, no space for me to say
"Sorry but I've got to go we'll talk another day"
Sitting there still tryin' to smile but it seems impossible
'Cause honestly I was getting.
Tired of words, words, words
Don't want 'em anymore
Words, words, words
How could I deal with them before?
It's like they've taken over and there's nowhere I can hide
What good do they bring? Never fixed anything
So as you can see that's why I'm not speaking
Words.
Everywhere I go words are coming at me
From on the radio and on the T.V.
People stop to say "Hello" but that isn't what I need
What I want from these words is to be free
One word after the other, no space for me to say
"I have to leave and get some space, I've got to get away"
Sitting there impatiently trying not to cry
'Cause honestly I was getting
Tired of words, words, words
Don't want 'em anymore
Words, words, words
How could I deal with them before?
It's like they've taken over and there's nowhere I can hide
What good do they bring? Never fixed anything
So as you can see that's why I'm not speaking
What's the point of narrating life
'Cause you know that words will only hurt you inside
You make your promises and then you break them
Who says forgiveness can be written down with a pen
I hold your hand and try to let it go
But you keep on bringing back feelings and they show
Your light keeps dimming everything around
And the words I'm feeling, they can't be found
To explain how I feel right now
Words, words, words
Don't want 'em anymore
Words, words, words
How could I deal with them before?
It's like they've taken over and there's nowhere I can hide
What good do they bring? Never fixed anything
So as you can see that's why I'm not speaking
Words